backups: fix mounting logic of backup settings and cloudron restore

This commit is contained in:
Girish Ramakrishnan
2021-05-26 23:01:05 -07:00
parent 98988202a1
commit a34bdb9ddf
5 changed files with 79 additions and 44 deletions

View File

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