Save default SAVEDIR if answer is "".

pull/6/head
tastytea 2019-02-24 12:47:03 +01:00
parent 4762d7c8de
commit 59cbd14881
No known key found for this signature in database
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ else
echo -n "Where should backup file and digestfile be stored? [/var/lib/hashboot] " echo -n "Where should backup file and digestfile be stored? [/var/lib/hashboot] "
read -r SAVEDIR read -r SAVEDIR
[ -z "${SAVEDIR}" ] && SAVEDIR="/var/lib/hashboot"
echo "#Where the Backup files are stored" >> ${CONFIG_FILE} echo "#Where the Backup files are stored" >> ${CONFIG_FILE}
echo "SAVEDIR=${SAVEDIR}" >> ${CONFIG_FILE} echo "SAVEDIR=${SAVEDIR}" >> ${CONFIG_FILE}
DIGEST_FILE="${SAVEDIR}/hashboot.digest" DIGEST_FILE="${SAVEDIR}/hashboot.digest"