added workstation fixes
[fai-configs.git] / 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