period3.xyz/deploy.sh

22 lines
279 B
Bash
Raw Normal View History

2022-04-08 03:04:03 +02:00
#!/usr/bin/env bash
site=period3.xyz
gemini=/home/gemini/gemini
dest="$gemini/content"
2022-04-10 00:42:22 +02:00
# remove existing files
sudo rm -rv $dest/*
2022-04-08 03:04:03 +02:00
2022-04-10 00:42:22 +02:00
# copy received files to hosting location
sudo rsync -rvP $site/* $dest
2022-04-08 03:04:03 +02:00
2022-04-10 00:42:22 +02:00
# clean up
rm -rv $site
# delete self
rm deploy.sh
printf "\ndone!"
2022-04-08 03:04:03 +02:00