diff --git a/src/freedombone-utils-gnusocialtools b/src/freedombone-utils-gnusocialtools
index 5d3abf5aec3f3f6f43eba7e6c4f7139478a7c105..838250bfa145548a14471eb34c78a424c16b8d54 100755
--- a/src/freedombone-utils-gnusocialtools
+++ b/src/freedombone-utils-gnusocialtools
@@ -181,6 +181,11 @@ function install_pleroma {
         echo 'Unable to build pleroma'
         exit 7629352
     fi
+    if [ ! -f ~/build/pleroma/dist/index.html ]; then
+        echo $'Unable to build pleroma index.html'
+        exit 5282682
+    fi
+
     mv ~/build/pleroma/dist/index.html ~/build/pleroma/dist/pleroma.html
     cp -r ~/build/pleroma/dist/* /var/www/$pleroma_domain/htdocs/