revert e92927addb
All checks were successful
Build and Deploy Angular App / build (push) Successful in 1m40s

revert build: try set group owner

Signed-off-by: Polianin Nikita <wesser@noreply.git.winsomnia.net>
This commit is contained in:
Polianin Nikita 2024-10-25 03:06:07 +03:00
parent e92927addb
commit 72a5f37404

View File

@ -41,4 +41,5 @@ jobs:
ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts
sudo apt update sudo apt update
sudo apt install rsync -y 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 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"