1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab-runner_ynh.git synced 2024-09-03 19:15:58 +02:00
This commit is contained in:
Kayou 2024-04-04 13:51:02 +02:00 committed by GitHub
parent 203bfba89a
commit 74c24d929c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -46,6 +46,11 @@ ynh_app_setting_set --app=$app --key=executor --value=$executor
#=================================================
ynh_script_progression --message="Setting up source files..."
# Make sure docker is running before installing gitlab-runner
if ! systemctl is-active --quiet docker; then
ynh_systemd_action --service_name=docker --action=restart --line_match="API listen on /run/docker.sock"
fi
tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir
dpkg -i $tempdir/gitlab-runner.deb

View file

@ -32,6 +32,11 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Make sure docker is running before installing gitlab-runner
if ! systemctl is-active --quiet docker; then
ynh_systemd_action --service_name=docker --action=restart --line_match="API listen on /run/docker.sock"
fi
tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir
dpkg -i $tempdir/gitlab-runner.deb