File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- UBUNTU_VERSION=$( fgrep VERSION_ID /etc/os-release | cut -d\" -f2)
6- UBUNTU_CODENAME=$( fgrep VERSION_CODENAME /etc/os-release | cut -d= -f2)
5+ UBUNTU_VERSION=$( grep -F VERSION_ID /etc/os-release | cut -d\" -f2)
6+ UBUNTU_CODENAME=$( grep -F VERSION_CODENAME /etc/os-release | cut -d= -f2)
77
8- apt-get update -y
8+ apt-get update
99apt-get dist-upgrade -y
1010apt-get install wget gnupg add-apt-key -y
1111
@@ -74,7 +74,6 @@ gitfs_saltenv_whitelist:
7474 base
7575gitfs_update_interval:
7676 80
77-
7877EOF
7978
8079systemctl restart salt-master
@@ -83,9 +82,9 @@ cat <<EOF > /etc/salt/minion_id
8382opensourcewebsite.org
8483EOF
8584
86- cat << EOF >> /etc/salt/minion
87- master: 127.0.0.1
88- EOF
85+ if ! grep -Fq ' master: 127.0.0.1 ' /etc/salt/minion; then
86+ echo ' master: 127.0.0.1' >> /etc/salt/minion
87+ fi
8988
9089systemctl restart salt-minion
9190
You can’t perform that action at this time.
0 commit comments