From a3bf69511dc5603ce7791b52d7c3bcaeafdd1432 Mon Sep 17 00:00:00 2001 From: mues-lee <37851178+mues-lee@users.noreply.github.com> Date: Wed, 28 Mar 2018 00:47:02 +0200 Subject: [PATCH 1/3] fixing failing drive0 and drive1 symlink creation target folder for ln -s ${storage}/slots ${storage}/slots/drive0;ln -s ${storage}/slots ${storage}/slots/drive1 doesn't exist, to avoid the creation fail the need folder is created in before --- functions/backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/backup.sh b/functions/backup.sh index e5b8bf16e..5bcfc01cd 100644 --- a/functions/backup.sh +++ b/functions/backup.sh @@ -20,6 +20,7 @@ create_backup_config() { if ! (whiptail --title "Storage container creation" --yes-button "Continue" --no-button "Back" --yesno "$introtext" 15 80) then echo "CANCELED"; return 0; fi fi # create virtual 'tapes' + mkdir ${storage}/slots # folder needed for following symlinks ln -s ${storage}/slots ${storage}/slots/drive0;ln -s ${storage}/slots ${storage}/slots/drive1 # taper-parallel-write 2 so we need 2 virtual drives counter=1 while [ ${counter} -le ${tapes} ]; do From e2d6107546f6693c17d019691802fa3733ab2c6e Mon Sep 17 00:00:00 2001 From: mues-lee <37851178+mues-lee@users.noreply.github.com> Date: Thu, 29 Mar 2018 13:10:06 +0200 Subject: [PATCH 2/3] adding the correct ownership to slots folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit as suggested by @mstormi in https://github.com/openhab/openhabian/pull/354 Signed-off-by: Marcus Krüger github@mues-lee.de (github: mues-lee) --- functions/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/backup.sh b/functions/backup.sh index 5bcfc01cd..1714161b8 100644 --- a/functions/backup.sh +++ b/functions/backup.sh @@ -20,7 +20,7 @@ create_backup_config() { if ! (whiptail --title "Storage container creation" --yes-button "Continue" --no-button "Back" --yesno "$introtext" 15 80) then echo "CANCELED"; return 0; fi fi # create virtual 'tapes' - mkdir ${storage}/slots # folder needed for following symlinks + /bin/chown ${backupuser}:${backupuser} mkdir ${storage}/slots # folder needed for following symlinks ln -s ${storage}/slots ${storage}/slots/drive0;ln -s ${storage}/slots ${storage}/slots/drive1 # taper-parallel-write 2 so we need 2 virtual drives counter=1 while [ ${counter} -le ${tapes} ]; do From 0cefc000d1367db77e3d4eb06521e08f9632b7f6 Mon Sep 17 00:00:00 2001 From: mues-lee <37851178+mues-lee@users.noreply.github.com> Date: Thu, 29 Mar 2018 13:16:55 +0200 Subject: [PATCH 3/3] adding the correct ownership to slots folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit as suggested by @mstormi in https://github.com/openhab/openhabian/pull/354 Signed-off-by: Marcus Krüger github@mues-lee.de (github: mues-lee) --- functions/backup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/backup.sh b/functions/backup.sh index 1714161b8..80b4342ac 100644 --- a/functions/backup.sh +++ b/functions/backup.sh @@ -20,7 +20,8 @@ create_backup_config() { if ! (whiptail --title "Storage container creation" --yes-button "Continue" --no-button "Back" --yesno "$introtext" 15 80) then echo "CANCELED"; return 0; fi fi # create virtual 'tapes' - /bin/chown ${backupuser}:${backupuser} mkdir ${storage}/slots # folder needed for following symlinks + mkdir ${storage}/slots # folder needed for following symlinks + /bin/chown ${backupuser}:${backupuser} ${storage}/slots ln -s ${storage}/slots ${storage}/slots/drive0;ln -s ${storage}/slots ${storage}/slots/drive1 # taper-parallel-write 2 so we need 2 virtual drives counter=1 while [ ${counter} -le ${tapes} ]; do