Skip to content

Commit

Permalink
add cd doc root
Browse files Browse the repository at this point in the history
  • Loading branch information
guitdev committed Feb 26, 2021
1 parent 25a0358 commit 856a4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi

curl -L --insecure $OVH_HOSTING_URL

sshpass -p "$OVH_HOSTING_PASSWORD" ssh -o StrictHostKeyChecking=no $OVH_HOSTING_USER@$OVH_HOSTING_DOMAIN "rm -rvf $DOCUMENT_ROOT && mkdir $DOCUMENT_ROOT && git clone $REPOSITORY_URL $DOCUMENT_ROOT && export DOCUMENT_ROOT=$DOCUMENT_ROOT && bash $DOCUMENT_ROOT/my_script.sh"
sshpass -p "$OVH_HOSTING_PASSWORD" ssh -o StrictHostKeyChecking=no $OVH_HOSTING_USER@$OVH_HOSTING_DOMAIN "rm -rvf $DOCUMENT_ROOT && mkdir $DOCUMENT_ROOT && git clone $REPOSITORY_URL $DOCUMENT_ROOT && export DOCUMENT_ROOT=$DOCUMENT_ROOT && cd $DOCUMENT_ROOT && bash my_script.sh"

echo 'Done.'

Expand Down

0 comments on commit 856a4c6

Please sign in to comment.