period3.xyz/deploy.sh

21 lines
282 B
Bash

#!/usr/bin/env bash
site=period3.xyz
gemini=/home/gemini/gemini
dest="$gemini/content"
# remove existing files
sudo rm -rv $dest
# copy received files to hosting location
sudo mv $site $dest
sudo chown -R gemini:gemini $dest
# delete self
rm -v deploy.sh
printf "\ndone!\n"