From: Lisa Marie Maginnis Date: Mon, 26 Jan 2015 16:20:13 +0000 (-0500) Subject: fixed scripts X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=35c2205decf9a6894daea3bd1235d61c885bac4b;p=fai-configs.git fixed scripts --- diff --git a/scripts/IKIWIKI/10-ikiwiki.sh b/scripts/IKIWIKI/10-ikiwiki.sh new file mode 100644 index 0000000..2ddfea1 --- /dev/null +++ b/scripts/IKIWIKI/10-ikiwiki.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +# add a ikiwiki user account +if ! $ROOTCMD getent passwd ikiwki ; then + $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "ikiwiki user" ikiwiki + +fi diff --git a/scripts/IKIWIKI/20-setup-ikiwiki.sh b/scripts/IKIWIKI/20-setup-ikiwiki.sh new file mode 100644 index 0000000..4465993 --- /dev/null +++ b/scripts/IKIWIKI/20-setup-ikiwiki.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Detect if ikikwiki is already installed +if [ ! -e /etc/ikiwiki/ikiwiki.setup ]; then + # copy ikiwiki config + fcopy -v /etc/ikiwiki/ikiwiki.setup + + # run setup + $ROOTCMD ikiwiki --setup /etc/ikiwiki/auto.setup/DEFAULT +fi