From 7e0cccfb334067f98b962a454ae65cd697c23515 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Thu, 8 Dec 2011 23:24:05 -0800 Subject: pinyadmin: adding piny-ikiwiki-mass-rebuild --- pinyadmin/sbin/piny-ikiwiki-mass-rebuild | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 pinyadmin/sbin/piny-ikiwiki-mass-rebuild (limited to 'pinyadmin/sbin/piny-ikiwiki-mass-rebuild') diff --git a/pinyadmin/sbin/piny-ikiwiki-mass-rebuild b/pinyadmin/sbin/piny-ikiwiki-mass-rebuild new file mode 100755 index 0000000..5abe7ba --- /dev/null +++ b/pinyadmin/sbin/piny-ikiwiki-mass-rebuild @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +for i in $(find /etc/ikiwiki/piny/* -maxdepth 0 -type f -iname '*.setup' -printf "%f\n" | perl -pe 's/.setup$//'); do + echo Rebuilding $i... + sudo sudo rebuildrepo $i; # two sudos needed to clear out $SUDO_USER +done -- cgit v1.2.3