Skip to content

Commit dcd9d8d

Browse files
install fix
1 parent 5f12a0f commit dcd9d8d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ set -euo pipefail
55
UBUNTU_VERSION=$(fgrep VERSION_ID /etc/os-release | cut -d\" -f2)
66
UBUNTU_CODENAME=$(fgrep VERSION_CODENAME /etc/os-release | cut -d= -f2)
77

8+
apt-get update -y
9+
apt-get dist-upgrade -y
10+
apt-get install wget gnupg add-apt-key -y
11+
812
wget -qO- "https://repo.saltstack.com/py3/ubuntu/${UBUNTU_VERSION}/amd64/latest/SALTSTACK-GPG-KEY.pub" | apt-key add -
913

1014
cat <<EOF > /etc/apt/sources.list.d/saltstack.list
1115
deb http://repo.saltstack.com/py3/ubuntu/${UBUNTU_VERSION}/amd64/latest ${UBUNTU_CODENAME} main
1216
EOF
1317

14-
apt-get update -y
15-
apt-get dist-upgrade -y
1618
apt-get install salt-master salt-minion -y
1719

1820
cat <<EOF > /etc/salt/master

0 commit comments

Comments
 (0)