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 chmod

This commit is contained in:
yalh76 2021-04-15 20:30:35 +02:00
parent 58651503fe
commit 9339555f78
3 changed files with 6 additions and 6 deletions

View file

@ -83,7 +83,7 @@ ynh_setup_source --dest_dir="$final_path/tmp"
cp -af "$final_path/tmp/src/." "$final_path/."
ynh_secure_remove "$final_path/tmp"
chmod 750 "$final_path"
chmod -R 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
@ -112,12 +112,12 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
ynh_script_progression --message="Creating statedir and final_logpath..."
mkdir -p $statedir
chmod 750 "$statedir"
chmod -R 750 "$statedir"
chmod -R o-rwx "$statedir"
chown -R $app:www-data "$statedir"
mkdir -p $final_logpath
chmod 750 "$final_logpath"
chmod -R 750 "$final_logpath"
chmod -R o-rwx "$final_logpath"
chown -R $app:www-data "$final_logpath"

View file

@ -71,14 +71,14 @@ ynh_restore_file --origin_path="$final_path"
# Restore statedir
ynh_restore_file --origin_path="$statedir" --not_mandatory
mkdir -p $statedir
chmod 750 "$statedir"
chmod -R 750 "$statedir"
chmod -R o-rwx "$statedir"
chown -R $app:www-data "$statedir"
# Restore logs, data & permissions
ynh_restore_file --origin_path="$final_logpath" --not_mandatory
mkdir -p $final_logpath
chmod 750 "$final_logpath"
chmod -R 750 "$final_logpath"
chmod -R o-rwx "$final_logpath"
chown -R $app:www-data "$final_logpath"

View file

@ -94,7 +94,7 @@ then
ynh_secure_remove --file="$final_path/tmp"
fi
chmod 750 "$final_path"
chmod -R 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"