1
0
Fork 0
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:
Augustin Trancart 2022-02-08 14:14:42 +01:00
parent 028501b353
commit 18e06aa443
No known key found for this signature in database
GPG key ID: 364720A015B27E4A

View file

@ -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
}