mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Fix permissions
This commit is contained in:
parent
8532b3274d
commit
3d94a01ca8
3 changed files with 3 additions and 6 deletions
|
@ -233,8 +233,7 @@ ynh_script_progression --message="Securing files and directories..." --weight=1
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R root: "$final_path"
|
chown -R $app: "$final_path"
|
||||||
chown $app: "$final_path"
|
|
||||||
|
|
||||||
mkdir -p "$final_path/live/log"
|
mkdir -p "$final_path/live/log"
|
||||||
chown -R $app: "$final_path/live/log/"
|
chown -R $app: "$final_path/live/log/"
|
||||||
|
|
|
@ -82,8 +82,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R root: "$final_path"
|
chown -R $app: "$final_path"
|
||||||
chown $app: "$final_path"
|
|
||||||
|
|
||||||
mkdir -p "$final_path/live/log"
|
mkdir -p "$final_path/live/log"
|
||||||
chown -R $app: "$final_path/live/log/"
|
chown -R $app: "$final_path/live/log/"
|
||||||
|
|
|
@ -331,8 +331,7 @@ ynh_store_file_checksum --file="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R root: "$final_path"
|
chown -R $app: "$final_path"
|
||||||
chown $app: "$final_path"
|
|
||||||
|
|
||||||
mkdir -p "$final_path/live/log"
|
mkdir -p "$final_path/live/log"
|
||||||
chown -R $app: "$final_path/live/log/"
|
chown -R $app: "$final_path/live/log/"
|
||||||
|
|
Loading…
Reference in a new issue