cloudron-setup: print before we shift all the args

This commit is contained in:
Girish Ramakrishnan
2018-08-30 14:30:49 -07:00
parent f953cfc4d5
commit 6fac59cf9d

View File

@@ -53,6 +53,8 @@ sourceTarballUrl=""
rebootServer="true"
baseDataDir=""
echo "Running cloudron-setup with args : $@" > "${LOG_FILE}"
args=$(getopt -o "" -l "help,skip-baseimage-init,data-dir:,provider:,version:,env:,prerelease,edition:,skip-reboot" -n "$0" -- "$@")
eval set -- "${args}"
@@ -138,8 +140,6 @@ echo ""
echo " Join us at https://forum.cloudron.io for any questions."
echo ""
echo "Running cloudron-setup with args : $@" >> "${LOG_FILE}"
if [[ "${initBaseImage}" == "true" ]]; then
echo "=> Updating apt and installing script dependencies"
if ! apt-get update &>> "${LOG_FILE}"; then