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:
parent
9f0698ad6b
commit
20ba54c2b6
3 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue