From dbb4ed1bd6b6a3976dab3a2dbca1543719abe915 Mon Sep 17 00:00:00 2001 From: james Date: Sat, 21 Oct 2023 17:32:08 +0800 Subject: [PATCH] ln -s requires sudo --- .github/workflows/actions-ec2.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/actions-ec2.yml b/.github/workflows/actions-ec2.yml index d4fb779..db3994f 100644 --- a/.github/workflows/actions-ec2.yml +++ b/.github/workflows/actions-ec2.yml @@ -30,10 +30,10 @@ jobs: pwd git pull origin main cd frontend - npm run build - ln -s scripts/app-store-api.service /etc/systemd/system/app-store-api.service - ln -s scripts/app-store-frontend.socket /etc/systemd/system/app-store-frontend.socket - ln -s scripts/app-store-frontend.service /etc/systemd/system/app-store-frontend.service + sudo ln -s scripts/app-store-api.service /etc/systemd/system/app-store-api.service + sudo ln -s scripts/app-store-frontend.socket /etc/systemd/system/app-store-frontend.socket + sudo ln -s scripts/app-store-frontend.service /etc/systemd/system/app-store-frontend.service sudo systemctl daemon-reload sudo systemctl restart app-store-api + npm run build sudo systemctl restart app-store-frontend