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

index 4092615dacc2ea637cb4cf22feb5eaba1828cdb2..5de0be62489ea7a7c0bb234f6ffb5adc0406d1c8 100755 (executable)
@@ -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