Pārlūkot izejas kodu

Fix pleroma install

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
b8bed7bd8e
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8
    0
      src/freedombone-utils-gnusocialtools

+ 8
- 0
src/freedombone-utils-gnusocialtools Parādīt failu

@@ -257,11 +257,19 @@ function install_pleroma_front_end {
257 257
     git checkout $PLEROMA_COMMIT -b $PLEROMA_COMMIT
258 258
     set_completion_param "${app_name} pleroma commit" "$PLEROMA_COMMIT"
259 259
 
260
+    if [ -d $INSTALL_DIR/pleroma/node_modules ]; then
261
+        rm -rf $INSTALL_DIR/pleroma/node_modules
262
+    fi
263
+
260 264
     npm install -g yarn
261 265
     npm install -g eslint@3.19.0
262 266
     npm install -g eslint-plugin-promise@3.5.0
263 267
     npm install -g moment@2.18.1
268
+    npm install -g node-sass@4.5.2
264 269
     yarn
270
+    if [ -f $INSTALL_DIR/pleroma/dist/index.html ]; then
271
+        rm -rf $INSTALL_DIR/pleroma/dist/*
272
+    fi
265 273
     npm run build
266 274
     if [ ! -d $INSTALL_DIR/pleroma/dist ]; then
267 275
         echo 'Unable to build pleroma'