From 1c97652f1fbb734d7ebac8f4b861378fe37ab407 Mon Sep 17 00:00:00 2001 From: simono41 Date: Wed, 22 Aug 2018 01:51:29 +0200 Subject: [PATCH] fix --- arch-install | 2 +- snapshot.sh | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch-install b/arch-install index 9232761..2bc92c7 100755 --- a/arch-install +++ b/arch-install @@ -250,7 +250,7 @@ function usbsecret() { function cron() { echo "cron-job snapshot" mkdir -p ${mountpoint}/var/spool/cron/ - echo -n "0 18 * * * /usr/bin/snapshot makeboot ROOT home opt var/cache/pacman/pkg " > ${mountpoint}/var/spool/cron/root + echo -n "0 18 * * * /usr/bin/snapshot make ROOT home opt var/cache/pacman/pkg " > ${mountpoint}/var/spool/cron/root # custom-mounts for wort in ${mountsnaps} diff --git a/snapshot.sh b/snapshot.sh index 31d0ec0..852b91c 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -9,7 +9,7 @@ if [[ $EUID -ne 0 ]]; then fi echo "Als root Angemeldet" -if [ "make" == "$1" ] || [ "makeboot" == "$1" ]; then +if [ "make" == "$1" ]; then while (( "$(expr $# - 1)" )) do @@ -41,9 +41,6 @@ if [ "make" == "$1" ] || [ "makeboot" == "$1" ]; then if [ "${rootsnapshot}" == "y" ]; then #reset-fstab cp /etc/fstab.example /etc/fstab - fi - - if [ "makeboot" == "y" ]; then #stable-snapshot-boot if [ -f "/boot/arch-uefi.conf.example" ] && [ "${rootsnapshot}" == "y" ]; then