fixed logic
authorLisa Marie Maginnis <lisam@fsf.org>
Tue, 27 Jan 2015 16:40:24 +0000 (11:40 -0500)
committerLisa Marie Maginnis <lisam@fsf.org>
Tue, 27 Jan 2015 16:40:24 +0000 (11:40 -0500)
scripts/IKIWIKI/10-ikiwiki.sh

index 82942a123084aedef2da32803fe325c9ed2b10b2..274dda67fb22951a7dc7a556c8913b5e86452319 100755 (executable)
@@ -3,6 +3,7 @@
 # add a ikiwiki user account
 if ! $ROOTCMD getent passwd ikiwki ; then
     $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "ikiwiki user" ikiwiki
 # add a ikiwiki user account
 if ! $ROOTCMD getent passwd ikiwki ; then
     $ROOTCMD adduser --system --ingroup www-data --disabled-password --gecos "ikiwiki user" ikiwiki
+fi
 
 if ! $ROOTCMD test -e /home/ikiwiki/.ssh/id_rsa; then
     $ROOTCMD echo | $ROOTCMD sudo -u ikiwiki ssh-keygen -N ''
 
 if ! $ROOTCMD test -e /home/ikiwiki/.ssh/id_rsa; then
     $ROOTCMD echo | $ROOTCMD sudo -u ikiwiki ssh-keygen -N ''