diff --git a/init_server.sh b/init_server.sh index 66c3a861..a1a4da6d 100755 --- a/init_server.sh +++ b/init_server.sh @@ -15,18 +15,14 @@ INIT_DATE_FILE='/etc/freifunk-server-initdate' check_salt_repo() { # repos needs also a check in salt/freifunk/base/salt-minion/init.sls - case "$1" in - debian12 ) - [ ! -d /etc/apt/keyrings ] && mkdir /etc/apt/keyrings - curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023.gpg https://repo.saltproject.io/salt/py3/debian/12/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg - echo "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://repo.saltproject.io/salt/py3/debian/12/amd64/latest bookworm main" | tee /etc/apt/sources.list.d/saltstack.list - ;; - ubuntu20 ) - [ ! -d /usr/share/keyrings ] && mkdir /usr/share/keyrings - curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/amd64/latest/salt-archive-keyring.gpg - echo 'deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/20.04/amd64/latest focal main' | tee /etc/apt/sources.list.d/saltstack.list - ;; - esac + [ ! -d /etc/apt/keyrings ] && mkdir /etc/apt/keyrings + curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring.pgp https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public + curl -fsSL -o /etc/apt/sources.list.d/salt.sources https://github.com/saltstack/salt-install-guide/releases/latest/download/salt.sources + tee /etc/apt/preferences.d/salt-pin-1001 <