1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/SitemagicCMS_ynh.git synced 2024-09-03 20:26:13 +02:00

Config file requires write access

This commit is contained in:
tituspijean 2022-01-20 09:09:20 +01:00
parent 9f0698ad6b
commit 20ba54c2b6
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
3 changed files with 7 additions and 1 deletions

View file

@ -104,7 +104,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config.xml.php" --destination="$final_path/config.xml.php"
chmod 400 "$final_path/config.xml.php"
chmod 660 "$final_path/config.xml.php"
chown $app:$app "$final_path/config.xml.php"
#=================================================

View file

@ -66,6 +66,9 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod 660 "$final_path/config.xml.php"
chown $app:$app "$final_path/config.xml.php"
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================

View file

@ -86,6 +86,9 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod 660 "$final_path/config.xml.php"
chown $app:$app "$final_path/config.xml.php"
#=================================================
# NGINX CONFIGURATION
#=================================================