mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
Fix recursive chmod
This commit is contained in:
parent
9339555f78
commit
05b0b8734f
3 changed files with 6 additions and 6 deletions
|
@ -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 -R 750 "$final_path"
|
||||
chmod 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 -R 750 "$statedir"
|
||||
chmod 750 "$statedir"
|
||||
chmod -R o-rwx "$statedir"
|
||||
chown -R $app:www-data "$statedir"
|
||||
|
||||
mkdir -p $final_logpath
|
||||
chmod -R 750 "$final_logpath"
|
||||
chmod 750 "$final_logpath"
|
||||
chmod -R o-rwx "$final_logpath"
|
||||
chown -R $app:www-data "$final_logpath"
|
||||
|
||||
|
|
|
@ -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 -R 750 "$statedir"
|
||||
chmod 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 -R 750 "$final_logpath"
|
||||
chmod 750 "$final_logpath"
|
||||
chmod -R o-rwx "$final_logpath"
|
||||
chown -R $app:www-data "$final_logpath"
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ then
|
|||
ynh_secure_remove --file="$final_path/tmp"
|
||||
fi
|
||||
|
||||
chmod -R 750 "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue