Improve template for mbox imports
authorGerhard Schlager <mail@gerhard-schlager.at>
Tue, 30 Oct 2018 23:48:31 +0000 (00:48 +0100)
committerGerhard Schlager <mail@gerhard-schlager.at>
Tue, 30 Oct 2018 23:48:31 +0000 (00:48 +0100)
* Do not prevent sidekiq from running
* mbox import script has been renamed

templates/import/mbox.template.yml

index 972d1991eab81b10d5a21851b00afab82120c534..40ec3ba4db0a2f970df0409f6cff8959da7dd859 100644 (file)
@@ -5,19 +5,6 @@ params:
 
 hooks:
   after_web_config:
-    - exec:
-        cd: /etc/service
-        cmd:
-          - rm -R unicorn
-          - rm -R nginx
-          - rm -R cron
-
-    - exec:
-        cd: /etc/runit/3.d
-        cmd:
-          - rm 01-nginx
-          - rm 02-unicorn
-
     - file:
         path: /usr/local/bin/import_mbox.sh
         chmod: "+x"
@@ -31,7 +18,7 @@ hooks:
           cd $home
           echo "The mbox import is starting..."
           echo
-          su discourse -c 'bundle exec ruby script/import_scripts/mbox-experimental.rb /shared/import/settings.yml'
+          su discourse -c 'bundle exec ruby script/import_scripts/mbox.rb /shared/import/settings.yml'
 
     - exec:
         cd: $home