mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
ReFix backup issue
This commit is contained in:
parent
ec4da8ffdc
commit
087dc849fd
1 changed files with 6 additions and 2 deletions
|
@ -959,8 +959,8 @@ CHECK_BACKUP_RESTORE () {
|
|||
STANDARD_SETUP_APP
|
||||
|
||||
# Remove the previous residual backups
|
||||
sudo rm -rf /var/lib/lxc/$lxc_name/rootfs/home/yunohost.backup
|
||||
sudo rm -rf /var/lib/lxcsnaps/$lxc_name/$current_snapshot/rootfs/home/yunohost.backup
|
||||
sudo rm -rf /var/lib/lxc/$lxc_name/rootfs/home/yunohost.backup/archives
|
||||
sudo rm -rf /var/lib/lxcsnaps/$lxc_name/$current_snapshot/rootfs/home/yunohost.backup/archives
|
||||
|
||||
# BACKUP
|
||||
# Made a backup if the installation succeed
|
||||
|
@ -1024,6 +1024,10 @@ CHECK_BACKUP_RESTORE () {
|
|||
then
|
||||
# Uses the default snapshot
|
||||
current_snapshot=snap0
|
||||
|
||||
# Remove the previous residual backups
|
||||
sudo rm -rf /var/lib/lxcsnaps/$lxc_name/$current_snapshot/rootfs/home/yunohost.backup/archives
|
||||
|
||||
# Place the copy of the backup archive in the container.
|
||||
sudo mv -f ./archives /var/lib/lxcsnaps/$lxc_name/$current_snapshot/rootfs/home/yunohost.backup/
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue