This commit is contained in:
Родитель
62583132b7
Коммит
bb6a325dff
|
@ -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 )"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче