doc.rustdesk.com/deploy.sh

8 lines
287 B
Bash
Raw Normal View History

2022-04-11 22:43:47 +02:00
#!/usr/bin/env bash
2022-04-11 23:01:29 +02:00
hugo --minify
2022-04-11 22:43:47 +02:00
cd public; tar czf x *
scp x sg:/tmp/
2022-05-12 15:10:05 +02:00
ssh sg "sudo rm -rf /var/www/html/rustdesk.com/docs/* && sudo tar xzf /tmp/x -C /var/www/html/rustdesk.com/docs/ && /bin/rm /tmp/x && sudo chown www-data:www-data /var/www/html/rustdesk.com/docs/ -R"
2022-04-11 22:43:47 +02:00
/bin/rm x
cd -