diff --git a/ct/semaphore.sh b/ct/semaphore.sh index c3d5549679..b8b896fb35 100644 --- a/ct/semaphore.sh +++ b/ct/semaphore.sh @@ -33,7 +33,7 @@ function update_script() { systemctl stop semaphore msg_ok "Stopped Service" - fetch_and_deploy_gh_release "semaphore" "semaphoreui/semaphore" "binary" + fetch_and_deploy_gh_release "semaphore" "semaphoreui/semaphore" "binary" "latest" "/opt/semaphore" "semaphore_*_linux_amd64.deb" msg_info "Starting Service" systemctl start semaphore diff --git a/install/semaphore-install.sh b/install/semaphore-install.sh index 9996fc1ab5..e14ef01e12 100644 --- a/install/semaphore-install.sh +++ b/install/semaphore-install.sh @@ -15,22 +15,15 @@ update_os msg_info "Installing Dependencies" $STD apt install -y git +setup_deb822_repo \ + "ansible" \ + "https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=get&search=0x6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367" \ + "http://ppa.launchpad.net/ansible/ansible/ubuntu" \ + "jammy" +$STD apt install -y ansible msg_ok "Installed Dependencies" -msg_info "Setting up Ansible" -curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=get&search=0x6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367" | gpg --dearmor -o /usr/share/keyrings/ansible-archive-keyring.gpg -cat </etc/apt/sources.list.d/ansible.sources -Types: deb -URIs: http://ppa.launchpad.net/ansible/ansible/ubuntu -Suites: jammy -Components: main -Signed-By: /usr/share/keyrings/ansible-archive-keyring.gpg -EOF -$STD apt update -$STD apt install -y ansible -msg_ok "Set up Ansible" - -fetch_and_deploy_gh_release "semaphore" "semaphoreui/semaphore" "binary" +fetch_and_deploy_gh_release "semaphore" "semaphoreui/semaphore" "binary" "latest" "/opt/semaphore" "semaphore_*_linux_amd64.deb" msg_info "Configuring Semaphore" mkdir -p /opt/semaphore @@ -70,7 +63,6 @@ RestartSec=10s [Install] WantedBy=multi-user.target EOF - systemctl enable -q --now semaphore msg_ok "Created Service"