소스 검색

save cookie

Chris Vogel 1 년 전
부모
커밋
1e05705732
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scripts/install

+ 1 - 0
scripts/install

@@ -27,6 +27,7 @@ ynh_script_progression --message="Installing CouchDB..." --weight=60
 # This value must match for all nodes in the cluster. If they do not match,
 # attempts to connect the node to the cluster will be rejected.
 couchdb_magic_cookie=$(openssl rand 32 | base32 -w 0 | head -c-4)
+ynh_app_setting_set --app=$app --key=erlang_cookie --value="$couchdb_magic_cookie"
 
 echo "\
 couchdb couchdb/mode select standalone