From 0144747f5623c30150bc728682453db1cbdfa27e Mon Sep 17 00:00:00 2001 From: Phil Bajsicki Date: Mon, 18 Nov 2024 15:52:19 +0100 Subject: [PATCH] Update 2024.11.18 15:52 CET --- README.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index db0a7cf..004627a 100644 --- a/README.org +++ b/README.org @@ -19,23 +19,27 @@ echo `pwd` echo "post-receive: Generating https://bajsicki.com with Hugo..." # Create the directory and all subdirectories if they don't exist. +echo "post-receive: Creating directory and subdirs if they don't exist." mkdir -p $GIT_WORK_TREE chmod 755 $GIT_WORK_TREE # Remove any files already in the public directory, a fresh copy will be generated by hugo +echo "post-receive: Cleaning the /public directory." rm -rf $GIT_WORK_TREE/public # Update the modules in case of changes and pull the new pages +echo "post-receive: pulling git repo and submodules" cd $GIT_WORK_TREE && git pull --recurse-submodules # Generate the site with hugo +echo "post-receive: running hugo" cd $GIT_WORK_TREE && hugo # Fix any permission problems. +echo "post-receive: fixing permissions" find $GIT_WORK_TREE/public -type f -print | xargs -d '\n' chmod 644 find $GIT_WORK_TREE/public -type d -print | xargs -d '\n' chmod 755 echo "post-receive: Hugo site deployment complete" - #+end_src