From c2d647a3cb3a6d456684bcdce327954214352959 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Tue, 8 Nov 2022 12:00:47 -0500 Subject: Update edit and publish configs, tweak OBS, add Mumble client --- roles/prerec/templates/publish-backstage-index.sh | 3 +++ roles/prerec/templates/update-task-status.sh | 2 +- roles/prerec/templates/upload.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 roles/prerec/templates/publish-backstage-index.sh (limited to 'roles/prerec/templates') diff --git a/roles/prerec/templates/publish-backstage-index.sh b/roles/prerec/templates/publish-backstage-index.sh new file mode 100755 index 0000000..96b27e7 --- /dev/null +++ b/roles/prerec/templates/publish-backstage-index.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# {{ ansible_managed }} +emacsclient -a emacs --eval "(emacsconf-publish-backstage-index)" diff --git a/roles/prerec/templates/update-task-status.sh b/roles/prerec/templates/update-task-status.sh index 18b7c1b..c9ac142 100755 --- a/roles/prerec/templates/update-task-status.sh +++ b/roles/prerec/templates/update-task-status.sh @@ -5,6 +5,6 @@ FROM_STATUS="$2" TO_STATUS="$3" cd ~/emacsconf-2022-private git pull -emacsclient --eval "(progn (emacsconf-update-talk-status \"$SLUG\" \"$FROM_STATUS\" \"$TO_STATUS\") (emacsconf-with-talk-heading \"$SLUG\" (emacsconf-cache-video-data (emacsconf-get-talk-info-for-subtree)) (save-buffer)))" +emacsclient -a emacs --eval "(progn (emacsconf-update-talk-status \"$SLUG\" \"$FROM_STATUS\" \"$TO_STATUS\") (emacsconf-with-talk-heading \"$SLUG\" (emacsconf-cache-video-data (emacsconf-get-talk-info-for-subtree)) (save-buffer)))" git commit -m "Update task status for $SLUG" conf.org git push diff --git a/roles/prerec/templates/upload.sh b/roles/prerec/templates/upload.sh index f723d29..f3dc9c5 100755 --- a/roles/prerec/templates/upload.sh +++ b/roles/prerec/templates/upload.sh @@ -2,5 +2,5 @@ # {{ ansible_managed }} scp $* orga@media.emacsconf.org:~/backstage -emacsclient --eval "(emacsconf-publish-backstage-index)" +/data/emacsconf/{{ emacsconf_year }}/scripts/publish-backstage-index.sh rsync -avze ssh orga@media.emacsconf.org:~/backstage/ /data/emacsconf/cache/ -- cgit v1.2.3