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:
parent
c6db1e0f8f
commit
59fa6ffe81
1 changed files with 2 additions and 3 deletions
|
@ -33,6 +33,7 @@ password=$YNH_APP_ARG_PASSWORD
|
||||||
instance_name=$YNH_APP_ARG_NAME
|
instance_name=$YNH_APP_ARG_NAME
|
||||||
registration=$YNH_APP_ARG_REGISTRATION
|
registration=$YNH_APP_ARG_REGISTRATION
|
||||||
admin_email=$(ynh_user_get_info $admin 'mail')
|
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
|
### 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
|
### 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 instance $instance_name
|
||||||
ynh_app_setting_set $app registration $registration
|
ynh_app_setting_set $app registration $registration
|
||||||
ynh_app_setting_set $app admin_email $admin_email
|
ynh_app_setting_set $app admin_email $admin_email
|
||||||
|
ynh_app_setting_set $app secret_key $secret_key
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD MODIFICATIONS
|
# STANDARD MODIFICATIONS
|
||||||
|
@ -197,9 +199,6 @@ chown -R "$app":"$app" "/var/log/$app"
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
secret_key=$(openssl rand -base64 32)
|
|
||||||
ynh_app_setting_set $app secret_key $secret_key
|
|
||||||
|
|
||||||
# setup application config
|
# setup application config
|
||||||
sudo cp "../conf/.env" "$final_path/$app/.env"
|
sudo cp "../conf/.env" "$final_path/$app/.env"
|
||||||
ynh_replace_string "__DB_NAME__" "$db_name" "$final_path/$app/.env"
|
ynh_replace_string "__DB_NAME__" "$db_name" "$final_path/$app/.env"
|
||||||
|
|
Loading…
Add table
Reference in a new issue