Selaa lähdekoodia

Enable plugin first since upgrade builds view templates

Girish Ramakrishnan 8 vuotta sitten
vanhempi
commit
c09fbfac23
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      start.sh

+ 3 - 3
start.sh

@@ -77,9 +77,6 @@ for plugin in $(./nodebb plugins | grep 'nodebb-' | cut -f3 -d' '); do
     fi
 done
 
-echo "Updating nodebb"
-node /app/code/app --upgrade
-
 echo "Enabling the local mailer"
 ${mongo_cli} --eval "db.objects.update({ _key: \"settings:emailer-local\" }, { \$set: { \"emailer:local:host\": \"${MAIL_SMTP_SERVER}\", \"emailer:local:port\": \"${MAIL_SMTP_PORT}\", \"emailer:local:username\": \"${MAIL_SMTP_USERNAME}\", \"emailer:local:password\": \"${MAIL_SMTP_PASSWORD}\", \"emailer:local:secure\": \"off\" } }, { upsert: true })"
 
@@ -87,5 +84,8 @@ ${mongo_cli} --eval "db.objects.update({ _key: \"config\" }, { \$set: { \"email:
 
 ${mongo_cli} --eval "db.objects.update({ _key: \"plugins:active\" }, { \$set: { \"value\": \"nodebb-plugin-emailer-local\", \"score\": \"0\" } }, { upsert: true })"
 
+echo "Updating nodebb"
+node /app/code/app --upgrade
+
 echo "Starting nodebb"
 /usr/local/bin/gosu cloudron:cloudron node /app/code/loader.js --no-daemon --no-silent