mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
Fix log folder ownership when restoring
When we take a backup from one server and restore on another one, the log file is also backuped/restored, but the ffsync user uid on the origin server might not match the uid on the new serveur. When it's not the case, the user cannot write to this file, making the systemd unit fail. This commit ensure all log files are owned by the new ffsync user.
This commit is contained in:
parent
028501b353
commit
18e06aa443
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ install_sources() {
|
|||
set_permissions() {
|
||||
chown $app -R $final_path
|
||||
chmod u=rwX,g=rX,o= -R $final_path
|
||||
chown $app:root /var/log/uwsgi/$app
|
||||
chown $app:root -R /var/log/uwsgi/$app
|
||||
chmod -R u=rwX,g=rX,o= /var/log/uwsgi/$app
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue