Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ryihan committed May 1, 2021
1 parent cd3c57a commit 6806f0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Deploy/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ rsync --progress -avzh \
--exclude='README.md' \
-e "ssh -i /root/.ssh/id_rsa" \
--rsync-path="sudo rsync" . $SSH_USER@$SSH_HOST:$PATH_SOURCE
if [ $? -eq 0 ]
then
echo $'\n' "------ SYNC SUCCESSFUL! -----------------------" $'\n'
echo $'\n' "------ RELOADING PERMISSION -------------------" $'\n'
ssh -i /root/.ssh/id_rsa -t $SSH_USER@$SSH_HOST "sudo chown -R $OWNER:$OWNER $PATH_SOURCE"
ssh -i /root/.ssh/id_rsa -t $SSH_USER@$SSH_HOST "sudo chmod 775 -R $PATH_SOURCE"
ssh -i /root/.ssh/id_rsa -t $SSH_USER@$SSH_HOST "sudo chmod 777 -R $PATH_SOURCE/storage"
Expand Down

0 comments on commit 6806f0e

Please sign in to comment.