mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
Fix rights
This commit is contained in:
parent
34e0989347
commit
666e50f519
3 changed files with 6 additions and 6 deletions
|
@ -85,7 +85,7 @@ ynh_secure_remove "$final_path/tmp"
|
|||
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R root:$app "$final_path"
|
||||
chown -R $app:$app "$final_path"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
@ -114,12 +114,12 @@ ynh_script_progression --message="Creating statedir and final_logpath..."
|
|||
mkdir -p $statedir
|
||||
chmod 750 "$statedir"
|
||||
chmod -R o-rwx "$statedir"
|
||||
chown -R root:$app "$statedir"
|
||||
chown -R $app:$app "$statedir"
|
||||
|
||||
mkdir -p $final_logpath
|
||||
chmod 750 "$final_logpath"
|
||||
chmod -R o-rwx "$final_logpath"
|
||||
chown -R root:$app "$final_logpath"
|
||||
chown -R $app:$app "$final_logpath"
|
||||
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
|
|
|
@ -73,14 +73,14 @@ ynh_restore_file --origin_path="$statedir" --not_mandatory
|
|||
mkdir -p $statedir
|
||||
chmod 750 "$statedir"
|
||||
chmod -R o-rwx "$statedir"
|
||||
chown -R root:$app "$statedir"
|
||||
chown -R $app:$app "$statedir"
|
||||
|
||||
# Restore logs, data & permissions
|
||||
ynh_restore_file --origin_path="$final_logpath" --not_mandatory
|
||||
mkdir -p $final_logpath
|
||||
chmod 750 "$final_logpath"
|
||||
chmod -R o-rwx "$final_logpath"
|
||||
chown -R root:$app "$final_logpath"
|
||||
chown -R $app:$app "$final_logpath"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE PHP-FPM CONFIGURATION
|
||||
|
|
|
@ -96,7 +96,7 @@ fi
|
|||
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R root:$app "$final_path"
|
||||
chown -R $app:$app "$final_path"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
|
Loading…
Add table
Reference in a new issue