diff --git a/root/etc/cont-init.d/30-install b/root/etc/cont-init.d/30-install
index 4c41e0553333d4e3329c60c083dbe85fd71b2e00..64de8ea6f10a8b089a46a47a4a8e7c8544107c4c 100644
--- a/root/etc/cont-init.d/30-install
+++ b/root/etc/cont-init.d/30-install
@@ -1,8 +1,8 @@
 #!/usr/bin/with-contenv bash
 
-if [ ! -a /config/www/sui.lock ]; then
+if [ ! -f /config/www/sui.lock ]; then
   echo "**** Installing SUI  ****"
-  rm -f /config/www/*
+  rm -Rf /config/www/*
   git clone \
     https://github.com/jeroenpardon/sui.git \
       /tmp/sui
@@ -12,7 +12,7 @@ if [ ! -a /config/www/sui.lock ]; then
     /tmp/sui/License.md \
     /tmp/sui/apps.json \
     /tmp/sui/links.json \
-    /tmp/sui/index.html \
+    /tmp/sui/index.html
   rm -Rf /tmp/sui/.git
   cp -Rf \
     /tmp/sui/. \