1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/domoticz_ynh.git synced 2024-09-03 18:26:17 +02:00

Change ownership to $app

This commit is contained in:
Krakinou 2020-11-08 15:29:10 +01:00
parent 27f423a59a
commit 2dcf735431
3 changed files with 10 additions and 13 deletions

View file

@ -147,10 +147,9 @@ ynh_add_systemd_config
### that really need such authorization.
# Set permissions to app files
chown -R root: $final_path
#Both folder and database file must be own by app user for domoticz to work, other files are owned by root
chown $app: $final_path
chown $app: $final_path/domoticz.db
#chown -R root: $final_path
#Both folder and database file must be own by app user for domoticz to work and allow internal upgrade
chown -R $app: $final_path
#=================================================
# SETUP LOGROTATE

View file

@ -82,11 +82,10 @@ ynh_restore_file --origin_path="/etc/sudoers.d/$app"
# RESTORE USER RIGHTS
#=================================================
# Restore permissions on app files
chown -R root: $final_path
#Both folder and database file must be own by app user for domoticz to work, other files are owned by root
chown $app: $final_path
chown $app: $final_path/domoticz.db
# Set permissions to app files
#chown -R root: $final_path
#Both folder and database file must be own by app user for domoticz to work and allow internal upgrade
chown -R $app: $final_path
#=================================================
# SPECIFIC RESTORATION

View file

@ -212,10 +212,9 @@ ynh_add_systemd_config
#=================================================
# Set permissions to app files
chown -R root: $final_path
#Both folder and database file must be own by app user for domoticz to work, other files are owned by root
chown $app: $final_path
chown $app: $final_path/domoticz.db
#chown -R root: $final_path
#Both folder and database file must be own by app user for domoticz to work and allow internal upgrade
chown -R $app: $final_path
#=================================================
# SETUP LOGROTATE