1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snappymail_ynh.git synced 2024-09-03 20:26:29 +02:00
This commit is contained in:
Éric Gaspar 2023-10-13 09:44:19 +02:00
parent fff1309fcc
commit 3104c14475
2 changed files with 8 additions and 5 deletions

View file

@ -14,17 +14,17 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1 ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="application.ini" --destination="$install_dir/app/data/_data_/_default_/configs/application.ini" ynh_add_config --template="application.ini" --destination="$data_dir/application.ini"
chmod 400 "$install_dir/app/data/_data_/_default_/configs/application.ini" chmod 400 "$data_dir/application.ini"
chown $app:$app "$install_dir/app/data/_data_/_default_/configs/application.ini" chown $app:$app "$data_dir/application.ini"
#================================================= #=================================================
# SETUP SSO # SETUP SSO
#================================================= #=================================================
ynh_script_progression --message="Applying SSO patch..." --weight=1 ynh_script_progression --message="Applying SSO patch..." --weight=1
ynh_add_config --template="../conf/sso.php" --destination="$install_dir/index.php" ynh_add_config --template="sso.php" --destination="$install_dir/index.php"
#================================================= #=================================================
# MODIFY URL IN NGINX CONF # MODIFY URL IN NGINX CONF

View file

@ -86,10 +86,13 @@ ynh_use_logrotate --non-append
ynh_script_progression --message="Updating a configuration file..." --weight=1 ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="application.ini" --destination="$data_dir/application.ini" ynh_add_config --template="application.ini" --destination="$data_dir/application.ini"
chmod 400 "$data_dir/application.ini" chmod 400 "$data_dir/application.ini"
chown $app:$app "$data_dir/application.ini" chown $app:$app "$data_dir/application.ini"
ynh_add_config --template="include.php" --destination="$install_dir/include.php"
chmod 400 "$install_dir/include.php"
chown $app:$app "$install_dir/include.php"
#================================================= #=================================================
# SETUP SSO # SETUP SSO
#================================================= #=================================================