From 18e06aa4434668e766a658440776e36f45c6872b Mon Sep 17 00:00:00 2001 From: Augustin Trancart Date: Tue, 8 Feb 2022 14:14:42 +0100 Subject: [PATCH] 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. --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 172f1cb..fd96bc2 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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 }