From 0250508a8994d59c3f4a179a774d2eeb3b6c0442 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 26 Oct 2018 10:13:27 -0700 Subject: [PATCH] Add comment for installer.sh and start.sh --- scripts/installer.sh | 4 ++++ setup/start.sh | 3 +++ 2 files changed, 7 insertions(+) diff --git a/scripts/installer.sh b/scripts/installer.sh index 83ed14f92..5ded98129 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -1,5 +1,9 @@ #!/bin/bash +# This script is run before the box code is switched. This means that we can +# put network related/curl downloads here. If the script fails, the old code +# will continue to run + set -eu -o pipefail if [[ ${EUID} -ne 0 ]]; then diff --git a/setup/start.sh b/setup/start.sh index b9958ba7a..f5505ee3f 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -2,6 +2,9 @@ set -eu -o pipefail +# This script is run after the box code is switched. This means that this script +# should pretty much always succeed. No network logic/download code here. + echo "==> Cloudron Start" readonly USER="yellowtent"