From: Lisa Marie Maginnis Date: Tue, 27 Jan 2015 16:41:46 +0000 (-0500) Subject: fixed logic X-Git-Url: https://vcs.fsf.org/?p=fai-configs.git;a=commitdiff_plain;h=d15cbbee7430b8e9551afc5df32659fcf4ac97a9;ds=sidebyside fixed logic --- diff --git a/scripts/IKIWIKI/40-remove_index_html.sh b/scripts/IKIWIKI/40-remove_index_html.sh index 4092615..5de0be6 100755 --- a/scripts/IKIWIKI/40-remove_index_html.sh +++ b/scripts/IKIWIKI/40-remove_index_html.sh @@ -1,4 +1,6 @@ #! /bin/sh # gets in the way of wordpress's index.php -$ROOTCMD rm /var/www/index.htm +if $ROOTCMD -e test /var/www/index.htm; then + $ROOTCMD rm /var/www/index.htm +fi