Browse Source

Fix pleroma install

Bob Mottram 8 years ago
parent
commit
b8bed7bd8e
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/freedombone-utils-gnusocialtools

+ 8
- 0
src/freedombone-utils-gnusocialtools View File

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