Fail if no config file is found and the program is not run interactively.

fail-no-config
tastytea 2019-02-24 14:51:18 +01:00
parent 8c907cd430
commit 70ae214505
No known key found for this signature in database
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 6 deletions

View File

@ -148,12 +148,7 @@ else
fi
else
echo "#Device with the MBR on it" > ${CONFIG_FILE}
echo "MBR_DEVICE=${MBR_DEVICE}" >> ${CONFIG_FILE}
echo "#Where the Backup files are stored" >> ${CONFIG_FILE}
echo "SAVEDIR=/var/lib/hashboot" >> ${CONFIG_FILE}
echo "#001=mbr,010=files,100=bios" >> ${CONFIG_FILE}
echo "CKMODES=$CKMODES" >> ${CONFIG_FILE}
die 9 "No config file found. Run hashboot interactively to generate one."
fi
fi