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-29 02:38:54 +02:00
|
|
|
sudo chown -R gemini:gemini $dest/*
|
2022-04-08 03:04:03 +02:00
|
|
|
|
2022-04-10 00:42:22 +02:00
|
|
|
# clean up
|
|
|
|
rm -rv $site
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|