diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-03-08 09:55:30 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-03-08 09:55:30 +0100 |
commit | f9338afc92446aa18f703a9f466ec38e56193d55 (patch) | |
tree | d250492adf352dc15a7fe70f9c61fdbe0bcf6252 | |
parent | 3bae1fdd6c0f74bfd06b51fba844998bb4c9f697 (diff) | |
download | tyilnet-f9338afc92446aa18f703a9f466ec38e56193d55.tar.gz tyilnet-f9338afc92446aa18f703a9f466ec38e56193d55.tar.bz2 |
Remove www-blog
-rw-r--r-- | playbooks.d/www-blog/description.txt | 1 | ||||
-rw-r--r-- | playbooks.d/www-blog/playbook.bash | 33 |
2 files changed, 0 insertions, 34 deletions
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/playbook.bash b/playbooks.d/www-blog/playbook.bash deleted file mode 100644 index e2c0617..0000000 --- a/playbooks.d/www-blog/playbook.bash +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -playbook_add() { - local path - - path="$(config "$BASHTARD_PLAYBOOK.path" "/var/www/$BASHTARD_PLAYBOOK")" - - mkdir -p -- "$path" - git -C "$path" init - git -C "$path" remote add "$(config "$BASHTARD_PLAYBOOK.remote" "origin")" "$(config "$BASHTARD_PLAYBOOK.repository")" - - playbook_sync -} - -playbook_sync() { - local branch - local path - local remote - - branch="$(config "$BASHTARD_PLAYBOOK.branch" "master")" - path="$(config "$BASHTARD_PLAYBOOK.path" "/var/www/$BASHTARD_PLAYBOOK")" - remote="$(config "$BASHTARD_PLAYBOOK.remote" "origin")" - - git -C "$path" fetch "$remote" "$branch" - git -C "$path" reset --hard "$remote/$branch" - - 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 "$BASHTARD_PLAYBOOK.path" "/var/www/$BASHTARD_PLAYBOOK")" -} |