period3.xyz/deploy.sh

21 lines
282 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 mv $site $dest
sudo chown -R gemini:gemini $dest
2022-04-08 03:04:03 +02:00
2022-04-10 00:42:22 +02:00
# delete self
2022-04-29 02:38:54 +02:00
rm -v deploy.sh
2022-04-10 00:42:22 +02:00
2022-04-29 02:51:10 +02:00
printf "\ndone!\n"
2022-04-08 03:04:03 +02:00