kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit d67763273242089d37d336c1b954493ae8c58bbc
parent 7632705c648dbefb272d757ec6b50a5cc8fb801c
Author: Joris Vink <joris@coders.se>
Date:   Thu,  5 Jan 2023 09:23:56 +0100

Add the old update stuff into the hook.

Diffstat:
misc/hooks/post-receive | 29+++++++++++++++++++++++++++++
1 file changed, 29 insertions(+), 0 deletions(-)

diff --git a/misc/hooks/post-receive b/misc/hooks/post-receive @@ -22,3 +22,32 @@ while read oldrev newrev ref; do $URL fi done + +ROOT=/var/chroot/kore-site +TARGET=$ROOT/stagit +STATIC=$HOME/src/stagit_static +export TMPDIR=$ROOT/.tmp + +STAGING=`mktemp -d` + +function update_stagit { + mkdir -p $STAGING/$1 + pushd $STAGING/$1 + stagit-index > index.html + cp -R $2 ${STAGING}/${1}.git + chmod -R +rx ${STAGING}/${1}.git + popd + +} + +git update-server-info + +update_stagit kore /home/git/kore.git + +cp -R $STATIC/* $STAGING +chmod -R o+rx $STAGING + +rm -rf $ROOT/.old +mv $TARGET $ROOT/.old +mv $STAGING $TARGET +rm -rf $ROOT/.old