X-Git-Url: https://vcs.fsf.org/?p=fai-configs.git;a=blobdiff_plain;f=scripts%2FIKIWIKI%2F40-remove_index_html.sh;h=5de0be62489ea7a7c0bb234f6ffb5adc0406d1c8;hp=4092615dacc2ea637cb4cf22feb5eaba1828cdb2;hb=45449933089f745faccab601e6f1764d5908a66d;hpb=d1e4fbdc42fc5be3f1da03ef18a679a16b48b557 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