From d15cbbee7430b8e9551afc5df32659fcf4ac97a9 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Tue, 27 Jan 2015 11:41:46 -0500 Subject: [PATCH] fixed logic --- scripts/IKIWIKI/40-remove_index_html.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.25.1