This commit is contained in:
simono41 2018-08-22 01:51:29 +02:00
parent 4cc1c952f9
commit 1c97652f1f
2 changed files with 2 additions and 5 deletions

View file

@ -250,7 +250,7 @@ function usbsecret() {
function cron() { function cron() {
echo "cron-job snapshot" echo "cron-job snapshot"
mkdir -p ${mountpoint}/var/spool/cron/ 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 # custom-mounts
for wort in ${mountsnaps} for wort in ${mountsnaps}

View file

@ -9,7 +9,7 @@ if [[ $EUID -ne 0 ]]; then
fi fi
echo "Als root Angemeldet" echo "Als root Angemeldet"
if [ "make" == "$1" ] || [ "makeboot" == "$1" ]; then if [ "make" == "$1" ]; then
while (( "$(expr $# - 1)" )) while (( "$(expr $# - 1)" ))
do do
@ -41,9 +41,6 @@ if [ "make" == "$1" ] || [ "makeboot" == "$1" ]; then
if [ "${rootsnapshot}" == "y" ]; then if [ "${rootsnapshot}" == "y" ]; then
#reset-fstab #reset-fstab
cp /etc/fstab.example /etc/fstab cp /etc/fstab.example /etc/fstab
fi
if [ "makeboot" == "y" ]; then
#stable-snapshot-boot #stable-snapshot-boot
if [ -f "/boot/arch-uefi.conf.example" ] && [ "${rootsnapshot}" == "y" ]; then if [ -f "/boot/arch-uefi.conf.example" ] && [ "${rootsnapshot}" == "y" ]; then