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:
parent
27f423a59a
commit
2dcf735431
3 changed files with 10 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue