1
0
Fork 0
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:
yalh76 2021-04-11 22:16:13 +02:00
parent 34e0989347
commit 666e50f519
3 changed files with 6 additions and 6 deletions

View file

@ -85,7 +85,7 @@ ynh_secure_remove "$final_path/tmp"
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path" chown -R $app:$app "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -114,12 +114,12 @@ ynh_script_progression --message="Creating statedir and final_logpath..."
mkdir -p $statedir mkdir -p $statedir
chmod 750 "$statedir" chmod 750 "$statedir"
chmod -R o-rwx "$statedir" chmod -R o-rwx "$statedir"
chown -R root:$app "$statedir" chown -R $app:$app "$statedir"
mkdir -p $final_logpath mkdir -p $final_logpath
chmod 750 "$final_logpath" chmod 750 "$final_logpath"
chmod -R o-rwx "$final_logpath" chmod -R o-rwx "$final_logpath"
chown -R root:$app "$final_logpath" chown -R $app:$app "$final_logpath"
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION

View file

@ -73,14 +73,14 @@ ynh_restore_file --origin_path="$statedir" --not_mandatory
mkdir -p $statedir mkdir -p $statedir
chmod 750 "$statedir" chmod 750 "$statedir"
chmod -R o-rwx "$statedir" chmod -R o-rwx "$statedir"
chown -R root:$app "$statedir" chown -R $app:$app "$statedir"
# Restore logs, data & permissions # Restore logs, data & permissions
ynh_restore_file --origin_path="$final_logpath" --not_mandatory ynh_restore_file --origin_path="$final_logpath" --not_mandatory
mkdir -p $final_logpath mkdir -p $final_logpath
chmod 750 "$final_logpath" chmod 750 "$final_logpath"
chmod -R o-rwx "$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 # RESTORE THE PHP-FPM CONFIGURATION

View file

@ -96,7 +96,7 @@ fi
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path" chown -R $app:$app "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION