Files
2026-09-30 16:27:14 +00:00

18 lines
308 B
Bash
Executable File

#!/bin/sh
BLOGDIR=/var/www/myblog
cd $BLOGDIR
#find * | grep -v deploy.sh | xargs rm -rf
/usr/bin/git clean -fdx
/usr/bin/git fetch --all
/usr/bin/git reset --hard origin/master
/usr/bin/git pull
/usr/bin/git submodule update --init --recursive
/usr/bin/hugo --gc --minify
chown -R caddy:caddy public/