浏览代码

Check for index file

Bob Mottram 8 年前
父节点
当前提交
45f74e2fbc
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      src/freedombone-utils-gnusocialtools

+ 5
- 0
src/freedombone-utils-gnusocialtools 查看文件

@@ -181,6 +181,11 @@ function install_pleroma {
181 181
         echo 'Unable to build pleroma'
182 182
         exit 7629352
183 183
     fi
184
+    if [ ! -f ~/build/pleroma/dist/index.html ]; then
185
+        echo $'Unable to build pleroma index.html'
186
+        exit 5282682
187
+    fi
188
+
184 189
     mv ~/build/pleroma/dist/index.html ~/build/pleroma/dist/pleroma.html
185 190
     cp -r ~/build/pleroma/dist/* /var/www/$pleroma_domain/htdocs/
186 191