ktyl.dev/scripts/deploy-ktyl.dev

11 lines
162 B
Plaintext
Raw Normal View History

2022-05-28 03:12:48 +02:00
#!/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