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"