Fix systemd unit startup hanging
This commit is contained in:
@@ -16,7 +16,7 @@ A runner for Gitea based on act.}
|
||||
|
||||
Name: gitea-act-runner
|
||||
Version: 0.2.10
|
||||
Release: %autorelease -b 9
|
||||
Release: %autorelease -b 11
|
||||
Summary: A runner for Gitea based on act.
|
||||
|
||||
%global act_runner_service %{name}.service
|
||||
@@ -94,9 +94,9 @@ fi
|
||||
%post %{dockerd_rootless}
|
||||
%systemd_user_post %{act_runner_rootless_service} %{dockerd_rootless_service}
|
||||
if [ $1 -eq 1 ] || [ ! -d /home/%{runner_user_rootless}/act_runner ]; then
|
||||
loginctl enable-linger %{runner_user_rootless}
|
||||
echo ' INFO Please read README.%{rootless}-%{dockerd}.md to finish the installation'
|
||||
fi
|
||||
loginctl enable-linger %{runner_user_rootless}
|
||||
|
||||
%preun %{dockerd_rootless}
|
||||
%systemd_user_preun %{dockerd_rootless_service} %{act_runner_rootless_service}
|
||||
|
||||
Reference in New Issue
Block a user