mirror of
https://github.com/YunoHost-Apps/baikal_ynh.git
synced 2024-09-03 18:16:11 +02:00
Add permissions
This commit is contained in:
parent
73228b9f5c
commit
ce6570b10f
3 changed files with 4 additions and 1 deletions
|
@ -136,6 +136,7 @@ touch "${final_path}/Specific/INSTALL_DISABLED"
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
chown -R root: "$final_path"
|
chown -R root: "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
chown $app "$final_path/config/baikal.yaml"
|
chown $app "$final_path/config/baikal.yaml"
|
||||||
chmod 640 "$final_path/config/baikal.yaml"
|
chmod 640 "$final_path/config/baikal.yaml"
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,7 @@ ynh_system_user_create --username=$app
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
chown -R root: "$final_path"
|
chown -R root: "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
chown $app "$final_path/config/baikal.yaml"
|
chown $app "$final_path/config/baikal.yaml"
|
||||||
chmod 640 "$final_path/config/baikal.yaml"
|
chmod 640 "$final_path/config/baikal.yaml"
|
||||||
|
|
||||||
|
|
|
@ -184,6 +184,7 @@ fi
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
chown -R root: "$final_path"
|
chown -R root: "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
chown $app "$final_path/config/baikal.yaml"
|
chown $app "$final_path/config/baikal.yaml"
|
||||||
chmod 640 "$final_path/config/baikal.yaml"
|
chmod 640 "$final_path/config/baikal.yaml"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue