From b092964553a7f804f2f7800c9612a14f1919afef Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 5 Dec 2018 15:45:55 -0500 Subject: [PATCH] POST-Deploying multiple jekyll sites at once --- .../_posts/2018-12-03-deploying-multiple-jekyll-sites.md | 0 ..._gogs-repositories_bryan_www.git_hooks_post-receive.sh | 8 ++------ 2 files changed, 2 insertions(+), 6 deletions(-) create mode 100644 blog.bryanroessler.com/_posts/2018-12-03-deploying-multiple-jekyll-sites.md diff --git a/blog.bryanroessler.com/_posts/2018-12-03-deploying-multiple-jekyll-sites.md b/blog.bryanroessler.com/_posts/2018-12-03-deploying-multiple-jekyll-sites.md new file mode 100644 index 0000000..e69de29 diff --git a/scripts/_var_lib_git_gogs-repositories_bryan_www.git_hooks_post-receive.sh b/scripts/_var_lib_git_gogs-repositories_bryan_www.git_hooks_post-receive.sh index f9cbaf7..232ac13 100644 --- a/scripts/_var_lib_git_gogs-repositories_bryan_www.git_hooks_post-receive.sh +++ b/scripts/_var_lib_git_gogs-repositories_bryan_www.git_hooks_post-receive.sh @@ -11,22 +11,18 @@ if [ ! -d "{$TMP_GIT_CLONE}" ]; then else cd "${TMP_GIT_CLONE}" - # avoid breaking the build when force pushing git fetch --all git reset --hard origin/master git pull fi -pushd "${TMP_GIT_CLONE}" - for site in *.*/; do - [[ ! -d /var/www/${site} ]] && mkdir -p /var/www/${site} && chgrp -R /var/www/${site} && chmod g+s /var/www/${site} + [ ! -d /var/www/${site} ] && mkdir -p /var/www/${site} && chgrp -R /var/www/${site} && chmod g+s /var/www/${site} pushd ${site} bundle install --deployment bundle exec jekyll build --destination /var/www/${site} popd done - -exit +exit 0