remove public first to avoid old htmls

This commit is contained in:
rustdesk 2025-08-05 11:22:13 +08:00
parent 0ff49457de
commit 442147c675

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
hugo --minify
rm -rf public/*
cd public; tar czf x *
scp x ot:/tmp/
ssh ot "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"