1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

secret back to original

This commit is contained in:
yalh76 2019-03-21 06:01:58 +01:00
parent c6db1e0f8f
commit 59fa6ffe81

View file

@ -33,6 +33,7 @@ password=$YNH_APP_ARG_PASSWORD
instance_name=$YNH_APP_ARG_NAME
registration=$YNH_APP_ARG_REGISTRATION
admin_email=$(ynh_user_get_info $admin 'mail')
secret_key=$(openssl rand -base64 32)
### If it's a multi-instance app, meaning it can be installed several times independently
### The id of the app as stated in the manifest is available as $YNH_APP_ID
@ -75,6 +76,7 @@ ynh_app_setting_set $app is_public $is_public
ynh_app_setting_set $app instance $instance_name
ynh_app_setting_set $app registration $registration
ynh_app_setting_set $app admin_email $admin_email
ynh_app_setting_set $app secret_key $secret_key
#=================================================
# STANDARD MODIFICATIONS
@ -197,9 +199,6 @@ chown -R "$app":"$app" "/var/log/$app"
# MODIFY A CONFIG FILE
#=================================================
secret_key=$(openssl rand -base64 32)
ynh_app_setting_set $app secret_key $secret_key
# setup application config
sudo cp "../conf/.env" "$final_path/$app/.env"
ynh_replace_string "__DB_NAME__" "$db_name" "$final_path/$app/.env"