This commit is contained in:
Jonas Forsberg 2021-09-23 11:17:13 +02:00
parent 7320bc64c8
commit 64aeef94d9

View File

@ -3,6 +3,8 @@
set -aeou pipefail set -aeou pipefail
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
function printHelp(){ function printHelp(){
cat << EOF cat << EOF
Usage ${0##*/} [options..] Usage ${0##*/} [options..]
@ -87,7 +89,7 @@ function check_prerequisites(){
} }
function do_salt_call(){ function do_salt_call(){
local salt="sudo salt-call --local --file-root $HOME/tle/salt/states --pillar-root $HOME/tle/salt/pillars" local salt="sudo salt-call --local --file-root $SCRIPTDIR/salt/states --pillar-root $SCRIPTDIR/salt/pillars"
new_log "Running salt high state" new_log "Running salt high state"
if asktobreak;then if asktobreak;then
return return