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