aboutsummaryrefslogtreecommitdiff
path: root/post.sh
diff options
context:
space:
mode:
Diffstat (limited to 'post.sh')
-rwxr-xr-xpost.sh12
1 files changed, 3 insertions, 9 deletions
diff --git a/post.sh b/post.sh
index 03de817..f961adf 100755
--- a/post.sh
+++ b/post.sh
@@ -1,12 +1,6 @@
#!/bin/sh
-if [ ! -s API_KEY ]; then
- echo "put ur api key in API_KEY pwetty pwease"
- exit 1
-fi
-api=$(cat API_KEY)
+
./build.sh
-tmpfile=$(mktemp)
-tar -C public/ -cvz . > $tmpfile
-trap "rm $tmpfile" EXIT
-curl --oauth2-bearer "$api" -Fcontent=@"$tmpfile" https://pages.sr.ht/publish/lemurianmage.srht.site
+rsync -rtvzP public/ --rsync-path='doas rsync' \
+ lemurianmage@slimegirl.nexus:/var/www/htdocs/slimegirl.nexus