accidentally hard coded debian version as 10

This commit is contained in:
2023-12-25 16:10:52 -05:00
parent baee76d9ac
commit b5b233ce78

View File

@@ -44,7 +44,6 @@ echo -e -n "${CYAN}Ensure $PUBLIC_IPV4 is whitelisted on the salt master, then p
read
if ! [ -e /usr/bin/salt-call ]; then
set -x
if [[ "$DISTRO" == "fedora" ]]; then
echo -e "${CYAN}Fedora detected - installing Python3.10 if not present, then using a venv${NC}"
if ! which python3.10 &>/dev/null; then
@@ -87,14 +86,13 @@ if ! [ -e /usr/bin/salt-call ]; then
[ -f $KEYPATH ] ||
curl -fsSL -o $KEYPATH https://repo.saltproject.io/salt/py3/debian/$OS_VERSION/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg
[ -f /etc/apt/sources.list.d/salt.list ] ||
echo "deb [signed-by=$KEYPATH arch=amd64] https://repo.saltproject.io/salt/py3/debian/10/amd64/minor/$SALT_VERSION $CODENAME main" > /etc/apt/sources.list.d/salt.list
echo "deb [signed-by=$KEYPATH arch=amd64] https://repo.saltproject.io/salt/py3/debian/$OS_VERSION/amd64/minor/$SALT_VERSION $CODENAME main" > /etc/apt/sources.list.d/salt.list
apt-get update
apt-get -y install salt-minion
else
echo -e "${RED}Unrecognized OS${NC}"
exit 1
fi
set +x
fi
APPLY='salt-call state.apply --master=kpi.keiran.us salt'