period3.xyz/deploy.sh

22 lines
279 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 rsync -rvP $site/* $dest
# clean up
rm -rv $site
# delete self
rm deploy.sh
printf "\ndone!"