Import scripts now cloned from git rather than copied from the persistent directory structure

This commit is contained in:
David Sainty 2024-06-18 11:47:54 +00:00
parent 0e5271c94c
commit db049b6511

View File

@ -1,4 +1,4 @@
## saint v0.3
## saint v0.4
## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
@ -108,11 +108,12 @@ hooks:
- gem install sqlite3
after_bundle_exec:
- exec:
cd: /var/www/discourse
cd: /var/www/discourse/script/import_scripts
cmd:
- apt-get install -y vim
- cp /shared/slowtwitch/import_scripts/goss*.rb /var/www/discourse/script/import_scripts/
- chown -R discourse:discourse /var/www/discourse/script/import_scripts/goss*.rb
- git clone https://gitea.federated.computer/saint/discourse-import_scripts.git
- chown -R discourse:discourse discourse-import_scripts/*.rb
#- cp -a /shared/slowtwitch/import_scripts/goss*.rb /var/www/discourse/script/import_scripts/
#- mkdir /var/www/discourse/plugins/md5_authentication
#- cp -a /shared/slowtwitch/md5_authentication/plugin.rb /var/www/discourse/plugins/plugin.rb