fixed shebang and better salt function
This commit is contained in:
parent
b00a4f7a6f
commit
87964e593b
@ -1,5 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
function salt() {
|
function salt() {
|
||||||
|
if [[ "$1" == "state.apply" ]]; then
|
||||||
sudo salt-call --local --file-root "$HOME/salt/states" --pillar-root "$HOME/salt/pillars" "$@" pillar="{username: $USER}"
|
sudo salt-call --local --file-root "$HOME/salt/states" --pillar-root "$HOME/salt/pillars" "$@" pillar="{username: $USER}"
|
||||||
|
else
|
||||||
|
sudo salt-call --local --file-root "$HOME/salt/states" --pillar-root "$HOME/salt/pillars" "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pw(){
|
function pw(){
|
||||||
|
Loading…
Reference in New Issue
Block a user