X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=bin%2Fupdate-wiki;h=98b0b5a9be722f18b53160d0c3f6c651ac3b534e;hb=d90e30d15e338794ea8bc42baa3da66628234901;hp=3547c28cf5bdc3fc866ebc501deb5edd54b3a807;hpb=fc494b5927df561d84bccc48e10c4028b7017cb9;p=mirror%2Fdsa-wiki.git diff --git a/bin/update-wiki b/bin/update-wiki index 3547c28..98b0b5a 100755 --- a/bin/update-wiki +++ b/bin/update-wiki @@ -12,7 +12,14 @@ UPDATE=1 [ "$UPDATE" != 1 ] || ( cd "$WC" && env -i git pull ) -env -i ikiwiki \ +if [ "$UPDATE" != 1 ]; then + GITPLUGIN="" +else + GITPLUGIN="--plugin git" +fi + +env -i "HOME=$HOME" \ + ikiwiki \ --timeformat '%F' \ --wikiname 'DSA' \ --url "$URL" \ @@ -21,15 +28,15 @@ env -i ikiwiki \ --templatedir "$WC/templates" \ --no-discussion \ --refresh \ - --atom \ - --rss \ + --atom \ + --rss \ --plugin template \ --plugin toggle \ --plugin inline \ --plugin sidebar \ --plugin table \ --plugin creole \ - --plugin git \ + $GITPLUGIN \ --disable-plugin openid \ --disable-plugin sandbox \ --disable-plugin passwordauth \