diff --git a/blog-update b/blog-update index b755b89..ea65d2b 100755 --- a/blog-update +++ b/blog-update @@ -1,5 +1,6 @@ #!/bin/sh echo "Run as git user + still needs a bit of manual interaction. Updating gemini blog..." cd $GEMIBLOG -doas chmod u=g -R . -git pull +GEM_USER=$(stat -c "%U" .) +GEM_GROUP=$(stat -c "%G" .) +doas -u $GEM_USER git pull