diff --git a/scripts/install b/scripts/install index df18f41..abef65c 100755 --- a/scripts/install +++ b/scripts/install @@ -27,6 +27,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url="/" is_public=$YNH_APP_ARG_IS_PUBLIC +key=$(ynh_string_random --length=32) app=$YNH_APP_INSTANCE_NAME @@ -120,10 +121,10 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 -ynh_add_config --template="../conf/config.yml" --destination="$final_path/config/config.yml" +ynh_add_config --template="../conf/.env" --destination="$final_path/.env" -chmod 400 "$final_path/config/config.yml" -chown $app:$app "$final_path/config/config.yml" +chmod 400 "$final_path/.env" +chown $app:$app "$final_path/.env" #================================================= # SETUP SSOWAT