Migrated it to Debian.

This commit is contained in:
starcells committed 2026-02-20 20:29:15 +08:00
1 parent bfba69ddd0
commit 13b8591353
1 file changed
+7 -5
+7 -5
View File
@@ -1,10 +1,12 @@
#!/bin/sh
cd /usr/local/www/myblog
BLOGDIR=/var/www/myblog
/usr/local/bin/git pull origin master
# /usr/local/bin/git submodule update --init --recursive
cd $BLOGDIR
/usr/local/bin/hugo --gc --minify
/usr/bin/git pull origin master
# /usr/bin/git submodule update --init --recursive
/usr/sbin/chown -R www:www public/
/usr/bin/hugo --gc --minify
chown -R www-data:www-data public/