hatecomputers.club/deploy.sh

14 lines
264 B
Bash
Raw Normal View History

2024-04-01 20:06:24 -04:00
#!/bin/bash
set -e
echo $SSH_KEY >> /tmp/key
echo $SSH_KEY
echo $SSH_KEY | base64
echo $(cat /tmp/key)
chmod -R 0600 /tmp/key
ssh -i /tmp/key -o StrictHostKeyChecking=no root@hatecomputers.club "systemctl restart docker-compose@hatecomputers-club"
rm /tmp/key