fix
This commit is contained in:
parent
6b53bac1d4
commit
2193bcde99
@ -140,13 +140,13 @@ os-restore() {
|
||||
BACKUP_DISK_IMAGES="/var/backups"
|
||||
fi
|
||||
|
||||
if [ "${3}" ]; then
|
||||
BACKUP_DISK_IMAGES="${3}"
|
||||
if [ "${4}" ]; then
|
||||
BACKUP_DISK_IMAGES="${4}"
|
||||
fi
|
||||
|
||||
partitions
|
||||
rm -rf $TARGET/usr $TARGET/sbin $TARGET/lib32 $TARGET/libx32 $TARGET/lib $TARGET/vmlinuz* $TARGET/initrd* $TARGET/bin $TARGET/var $TARGET/root $TARGET/opt $TARGET/etc $TARGET/run
|
||||
echo "[Restoring OS tarfile from $BACKUP_DISK_IMAGES/$1.tgz]"
|
||||
echo "[Restoring OS tarfile from $BACKUP_DISK_IMAGES/$2.tgz]"
|
||||
echo
|
||||
tar xfp $BACKUP_DISK_IMAGES/$2.tgz -C $TARGET/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user