ktyl.dev/scripts/deploy-ktyl.dev

11 lines
162 B
Bash
Executable File

#!/usr/bin/env bash
site="ktyl.dev"
srcdir="./$site"
webroot="/var/www"
sitedir="$webroot/$site"
[ -d $sitedir ] && rm -r $sitedir
sudo -n mv $srcdir $webroot