From 924c75ea796b0db6ad2e4fd5272a2d318c8106f9 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Fri, 25 Oct 2024 02:40:41 +0300 Subject: [PATCH 1/3] build: remove sudo Signed-off-by: Polianin Nikita --- .gitea/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 2db8b6f..caec37d 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -42,4 +42,4 @@ jobs: sudo apt update sudo apt install rsync -y rsync -avr -p --chmod=770 --no-times --delete ./dist/frontend/browser/ $SSH_USER@$SSH_HOST:$TARGET_DIR - ssh $SSH_USER@$SSH_HOST "sudo chown -R :www-data $TARGET_DIR" + ssh $SSH_USER@$SSH_HOST "chown -R :www-data $TARGET_DIR" From e92927addb9291f02d0d959f9d344b3f5354242d Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Fri, 25 Oct 2024 02:55:53 +0300 Subject: [PATCH 2/3] build: try set group owner Signed-off-by: Polianin Nikita --- .gitea/workflows/deploy.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index caec37d..6039a64 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -41,5 +41,4 @@ jobs: ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts sudo apt update sudo apt install rsync -y - rsync -avr -p --chmod=770 --no-times --delete ./dist/frontend/browser/ $SSH_USER@$SSH_HOST:$TARGET_DIR - ssh $SSH_USER@$SSH_HOST "chown -R :www-data $TARGET_DIR" + rsync -avr -p --chmod=660 --chown=$SSH_USER:www-data --no-times --delete ./dist/frontend/browser/ $SSH_USER@$SSH_HOST:$TARGET_DIR \ No newline at end of file From 72a5f3740481ee2a74c3cd15deedec0deed679ef Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Fri, 25 Oct 2024 03:06:07 +0300 Subject: [PATCH 3/3] revert e92927addb9291f02d0d959f9d344b3f5354242d revert build: try set group owner Signed-off-by: Polianin Nikita --- .gitea/workflows/deploy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 6039a64..caec37d 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -41,4 +41,5 @@ jobs: ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts sudo apt update sudo apt install rsync -y - rsync -avr -p --chmod=660 --chown=$SSH_USER:www-data --no-times --delete ./dist/frontend/browser/ $SSH_USER@$SSH_HOST:$TARGET_DIR \ No newline at end of file + rsync -avr -p --chmod=770 --no-times --delete ./dist/frontend/browser/ $SSH_USER@$SSH_HOST:$TARGET_DIR + ssh $SSH_USER@$SSH_HOST "chown -R :www-data $TARGET_DIR"