This commit is contained in:
Markus Heiliger 2021-01-14 11:16:46 -08:00
Родитель 62583132b7
Коммит bb6a325dff
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -4,11 +4,9 @@
[ "$UID" != "0" ] && exec -E "$0" ${1+"$@"} [ "$UID" != "0" ] && exec -E "$0" ${1+"$@"}
DIR=$(dirname $(readlink -f $0)) DIR=$(dirname $(readlink -f $0))
LOG="$DIR/azuredeploy.log"
touch $LOG # ensure the log file exists # tee stdout and stderr into log file
exec 1>$LOG # forward stdout to log file exec &> >(tee -a "$DIR/azuredeploy.log")
exec 2>&1 # redirect stderr to stdout
PARAM_ADMINUSERNAME="$( echo "${1}" | base64 --decode )" PARAM_ADMINUSERNAME="$( echo "${1}" | base64 --decode )"
PARAM_ADMINPASSWORD="$( echo "${2}" | base64 --decode )" PARAM_ADMINPASSWORD="$( echo "${2}" | base64 --decode )"