Update ansible-semaphore

This commit is contained in:
Thorsten Spille 2025-05-07 14:10:25 +02:00 committed by GitHub
parent 0c91d48778
commit 6d4d70e74e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ if [ \$installed_version != \$current_version ]; then
systemctl stop semaphore.service systemctl stop semaphore.service
echo "Downloading semaphore version \$current_version..." echo "Downloading semaphore version \$current_version..."
curl -s https://api.github.com/repos/semaphoreui/semaphore/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep 'linux_amd64.deb$' | wget -i - -O /opt/semaphore_linux_amd64.deb curl -s https://api.github.com/repos/semaphoreui/semaphore/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep 'linux_amd64.deb$' | wget -i - -O /opt/semaphore_linux_amd64.deb
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq install /opt/semaphore_linux_amd64.deb DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical dpkg -i /opt/semaphore_linux_amd64.deb
echo "Starting semaphore.service..." echo "Starting semaphore.service..."
systemctl start semaphore.service systemctl start semaphore.service
echo "semaphore update finished!" echo "semaphore update finished!"
@ -141,7 +141,7 @@ cat << EOF > /etc/semaphore/config.json
"slack_alert": false, "slack_alert": false,
"ldap_enable": false, "ldap_enable": false,
"ldap_needtls": false, "ldap_needtls": false,
"ssh_config_path": "~/.ssh/", "ssh_config_path": "/home/semaphore/.ssh/",
"demo_mode": false, "demo_mode": false,
"git_client": "" "git_client": ""
} }