Update install.sh to use 'root' user for act_runner service and modify README with new installation URL
All checks were successful
Deploy ACT Runner Installer / deploy (push) Successful in 6s
All checks were successful
Deploy ACT Runner Installer / deploy (push) Successful in 6s
This commit is contained in:
@@ -7,13 +7,13 @@ Simple installer to fetch and install the latest `gitea/act_runner` release for
|
|||||||
Run the installer directly:
|
Run the installer directly:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fSSL https://<url>/install.sh | bash
|
curl -fSSL https://get-act.tk2s.org | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
If your environment requires elevated permissions to write to `/usr/local/bin`, run with sudo:
|
If your environment requires elevated permissions to write to `/usr/local/bin`, run with sudo:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fSSL https://<url>/install.sh | sudo bash
|
curl -fSSL https://get-act.tk2s.org | sudo bash
|
||||||
```
|
```
|
||||||
|
|
||||||
### What it does
|
### What it does
|
||||||
|
|||||||
@@ -103,12 +103,12 @@ fi
|
|||||||
|
|
||||||
# Install systemd service for act_runner
|
# Install systemd service for act_runner
|
||||||
if command -v systemctl >/dev/null 2>&1; then
|
if command -v systemctl >/dev/null 2>&1; then
|
||||||
if ! id -u act_runner >/dev/null 2>&1; then
|
if ! id -u root >/dev/null 2>&1; then
|
||||||
useradd --system --home-dir /var/lib/act_runner --shell /usr/sbin/nologin act_runner
|
useradd --system --home-dir /var/lib/act_runner --shell /usr/sbin/nologin root
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p /var/lib/act_runner /etc/act_runner
|
mkdir -p /var/lib/act_runner /etc/act_runner
|
||||||
chown -R act_runner:act_runner /var/lib/act_runner /etc/act_runner
|
chown -R root:root /var/lib/act_runner /etc/act_runner
|
||||||
|
|
||||||
service_path="/etc/systemd/system/act-runner.service"
|
service_path="/etc/systemd/system/act-runner.service"
|
||||||
cat >"$service_path" <<'EOF'
|
cat >"$service_path" <<'EOF'
|
||||||
@@ -124,7 +124,7 @@ WorkingDirectory=/var/lib/act_runner
|
|||||||
TimeoutSec=0
|
TimeoutSec=0
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
Restart=always
|
Restart=always
|
||||||
User=act_runner
|
User=root
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user