From e374c056717a2b7b7fd99e3ad926b1465c772b4b Mon Sep 17 00:00:00 2001 From: Kagura Date: Sun, 24 Nov 2024 10:08:42 +0800 Subject: [PATCH] CI: use unprivledged user --- .forgejo/workflows/update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/update.yaml b/.forgejo/workflows/update.yaml index 04371f2..d3845de 100644 --- a/.forgejo/workflows/update.yaml +++ b/.forgejo/workflows/update.yaml @@ -29,4 +29,4 @@ jobs: echo "#!/bin/bash" > /tmp/ssh-pass.sh echo "echo $SSH_PASSWORD" >> /tmp/ssh-pass.sh chmod +x /tmp/ssh-pass.sh - DISPLAY=:0 ssh -o StrictHostKeyChecking=no "root@$SSH_HOST" "cd ReactLearn; git pull; docker compose restart" \ No newline at end of file + DISPLAY=:0 ssh -o StrictHostKeyChecking=no "app-runner@$SSH_HOST" "cd ReactLearn; git pull; docker compose restart" \ No newline at end of file