Save update json in /root

/tmp is not very secure. But the real reason is so that we can
re-run the setup script again should things fail.

/home/yellowtent/box/scripts/installer.sh --data-file /root/cloudron-update-data.json
This commit is contained in:
Girish Ramakrishnan
2017-01-30 15:21:04 -08:00
parent 841a838910
commit fe5e31e528

View File

@@ -8,7 +8,7 @@ if [[ ${EUID} -ne 0 ]]; then
fi
readonly UPDATER_SERVICE="cloudron-updater"
readonly DATA_FILE="/tmp/cloudron-update-data.json"
readonly DATA_FILE="/root/cloudron-update-data.json"
readonly curl="curl --fail --connect-timeout 20 --retry 10 --retry-delay 2 --max-time 300"
if [[ $# == 1 && "$1" == "--check" ]]; then