Skip to content

Commit

Permalink
Merge pull request #204 from Funssion-SWM/recovery-shell
Browse files Browse the repository at this point in the history
fix(cd): fix reboot script
  • Loading branch information
goathoon authored May 18, 2024
2 parents 13324dc + 3c7fb6e commit 1e626f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/temp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
username: ec2-user
key: ${{ secrets.NEW_PRIVATE_KEY }}
script: |
cat << EOF > /var/lib/cloud/scripts/per-boot/recover.sh
sudo bash -c 'cat << EOF > /var/lib/cloud/scripts/per-boot/recover.sh
#!/bin/bash
docker restart nginx
docker restart frontend
docker restart backend
EOF
EOF'
chmod +x /var/lib/cloud/scripts/per-boot/recover.sh
Expand Down

0 comments on commit 1e626f4

Please sign in to comment.