Update saltstack.sh
This commit is contained in:
parent
a5e02af570
commit
196b34240e
@ -25,8 +25,19 @@ function update_script() {
|
|||||||
check_container_resources
|
check_container_resources
|
||||||
|
|
||||||
if [[ ! -d /etc/salt ]]; then
|
if [[ ! -d /etc/salt ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
while true; do
|
||||||
exit
|
read -p "This will install ${APP} on $hostname. Proceed (y/n)? " yn
|
||||||
|
case $yn in
|
||||||
|
[Yy]*) break ;;
|
||||||
|
[Nn]*)
|
||||||
|
echo "No ${APP} installation found!"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Please answer yes or no."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RELEASE=$(curl -fsSL https://api.github.com/repos/saltstack/salt/releases/latest | jq -r .tag_name | sed 's/^v//')
|
RELEASE=$(curl -fsSL https://api.github.com/repos/saltstack/salt/releases/latest | jq -r .tag_name | sed 's/^v//')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user