diff options
Diffstat (limited to 'playbooks.d/www-blog')
m--------- | playbooks.d/www-blog | 0 | ||||
-rw-r--r-- | playbooks.d/www-blog/description.txt | 1 | ||||
-rw-r--r-- | playbooks.d/www-blog/etc/defaults | 2 | ||||
-rw-r--r-- | playbooks.d/www-blog/playbook.bash | 24 |
4 files changed, 0 insertions, 27 deletions
diff --git a/playbooks.d/www-blog b/playbooks.d/www-blog new file mode 160000 +Subproject 573cc709a25f6276c97e3911b684f67479f89b3 diff --git a/playbooks.d/www-blog/description.txt b/playbooks.d/www-blog/description.txt deleted file mode 100644 index c43df4c..0000000 --- a/playbooks.d/www-blog/description.txt +++ /dev/null @@ -1 +0,0 @@ -Sources for my personal blog diff --git a/playbooks.d/www-blog/etc/defaults b/playbooks.d/www-blog/etc/defaults deleted file mode 100644 index 5135281..0000000 --- a/playbooks.d/www-blog/etc/defaults +++ /dev/null @@ -1,2 +0,0 @@ -www.blog.branch=master -www.blog.path=/var/www/nl.tyil.www diff --git a/playbooks.d/www-blog/playbook.bash b/playbooks.d/www-blog/playbook.bash deleted file mode 100644 index e217e73..0000000 --- a/playbooks.d/www-blog/playbook.bash +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -playbook_add() { - git clone https://git.tyil.nl/blog "$(config www.blog.path)" - - playbook_sync -} - -playbook_sync() { - if [[ $BASHTARD_COMMAND != "add" ]] - then - git -C "$(config www.blog.path)" pull origin "$(config www.blog.branch)" - fi - - chgdir "$(config www.blog.path)" - hugo -D # This will generate all the draft content - hugo # And this will generate the actual live blog, but won't remove the draft content -} - -playbook_del() { - rm -fr -- "$(config www.blog.path)" - - pkg uninstall hugo -} |