backups: fix mounting logic of backup settings and cloudron restore
This commit is contained in:
@@ -30,4 +30,9 @@ systemctl stop "${mount_filename}" || true
|
||||
echo "$mount_file_contents" > "${mount_file}"
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
# systemd can automatically create the "where" dir but the backup logic relies on permissions
|
||||
mkdir -p "${where}"
|
||||
chown yellowtent:yellowtent "${where}"
|
||||
|
||||
systemctl enable --no-block --now "${mount_filename}" || true
|
||||
|
||||
Reference in New Issue
Block a user