mirror of
https://github.com/YunoHost-Apps/kresus_ynh.git
synced 2024-09-03 19:36:10 +02:00
make sure only needed files are owned by app
This commit is contained in:
parent
9ec4c51cac
commit
87828aa86a
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@ ynh_add_systemd_config
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
# Reset permissions
|
||||||
|
chown -R root:root "$final_path"
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R "$app":"$app" "$final_path/data/"
|
chown -R "$app":"$app" "$final_path/data/"
|
||||||
chmod -R 750 "$final_path/data/"
|
chmod -R 750 "$final_path/data/"
|
||||||
|
|
Loading…
Add table
Reference in a new issue