make it compatible with autoinstaller

t-pot autoinstaller cannot rely on /home/tsec, root directory is suggested.
This commit is contained in:
André Vorbach 2018-01-12 15:01:44 +01:00 committed by GitHub
parent f767c829e4
commit db8a37a94d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,7 +115,7 @@ systemctl stop tpot
# Better safe than sorry
echo "###### Creating backup and storing it in /home/tsec"
tar cvfz /home/tsec/tpot_backup.tgz /opt/tpot
tar cvfz /root/tpot_backup.tgz /opt/tpot
echo "###### Getting the current install flavor"
myFLAVOR=$(head $myCONFIGFILE -n 1 | awk '{ print $3 }' | tr -d :'()':)