fixed a missing ROOTCMD
[fai-configs.git] / scripts / IKIWIKI / 40-remove_index_html.sh
old mode 100644 (file)
new mode 100755 (executable)
index 4092615..5de0be6
@@ -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