From fe5e31e528f31129f115cbeeaddcb43a565dce9a Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 30 Jan 2017 15:21:04 -0800 Subject: [PATCH] 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 --- src/scripts/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/update.sh b/src/scripts/update.sh index c5a8ae29c..0f9be904c 100755 --- a/src/scripts/update.sh +++ b/src/scripts/update.sh @@ -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