commit edb0a43aaf04f3399a74e573ac15301c6c3d1ad2
parent e56f618809d2f727bff45ef07070023d1cce521e
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Tue, 26 Jul 2022 02:46:57 +0200
mkdir backup directory
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/postinstall b/postinstall
@@ -121,6 +121,7 @@ setup_fileset() {
$rsync --delete-excluded --log-file $SETUP_DIR/rsync.log.get / $SETUP_DIR/files.pre/ || return $?
cp -a --reflink=auto $SETUP_DIR/files.pre $SETUP_DIR/files.post || return $?
./command/fsapply $SETUP_DIR/files.post $PWD/conf/postinstall.fileset || exit $?
+ mkdir $SETUP_DIR/files.bak || return $?
$rsync --log-file $SETUP_DIR/rsync.log.put $SETUP_DIR/files.post/ / --backup --backup-dir=$SETUP_DIR/files.bak || return $?
}