cleanup scripts
This commit is contained in:
parent
e055ebcf67
commit
22999de2ea
|
@ -48,12 +48,19 @@ mkdir -p ${WP_BASE}/wp-content/uploads/civicrm/ext
|
|||
git config --global pull.ff only
|
||||
# download all extensions
|
||||
cd $WP_BASE/wp-content/plugins
|
||||
download_ext wp-2fa https://downloads.wordpress.org/plugin/wp-2fa.2.4.1.zip
|
||||
download_ext civicrm https://download.civicrm.org/civicrm-$version-wordpress.zip
|
||||
|
||||
# install l10n
|
||||
cd $WP_BASE/wp-content/plugins/civicrm
|
||||
download_ext l10n https://download.civicrm.org/civicrm-$version-l10n.tar.gz
|
||||
|
||||
# add specific CIVI extensions
|
||||
cd ${WP_BASE}/wp-content/uploads/civicrm/ext
|
||||
|
||||
# FIXME: migratie verwijderen na migratie
|
||||
# algemeen: velden en algemen instellingen
|
||||
# rules: workflows
|
||||
for repo in bij1migratie bij1rules bij1algemeen; do
|
||||
[ -e crm-${repo} ] || git clone --depth 1 https://lab.civicrm.org/partners/civicoop/bij1/crm-${repo}.git
|
||||
done
|
||||
|
@ -75,4 +82,3 @@ download_ext org.civicrm.recentmenu https://github.com/civicrm/org.civicrm.recen
|
|||
download_ext civirules https://lab.civicrm.org/extensions/civirules/-/archive/2.43/civirules-2.43.zip
|
||||
download_ext org.wikimedia.relationshipblock https://github.com/eileenmcnaughton/org.wikimedia.relationshipblock/archive/1.6.zip
|
||||
download_ext uk.co.vedaconsulting.mosaico https://download.civicrm.org/extension/uk.co.vedaconsulting.mosaico/2.9.1645644008/uk.co.vedaconsulting.mosaico-2.9.1645644008.zip
|
||||
download_ext wp-2fa https://downloads.wordpress.org/plugin/wp-2fa.2.4.1.zip
|
||||
|
|
|
@ -41,48 +41,6 @@ cv --no-interaction core:install -vv --setup-path=$PLUGIN_DIR/civicrm \
|
|||
wp plugin activate civicrm
|
||||
cp wp-content/uploads/civicrm/civicrm.settings.php wp-content/uploads/civicrm/civicrm.settings.php.bak
|
||||
|
||||
cv upgrade:db
|
||||
|
||||
# Install extensions
|
||||
cd wp-content/uploads/civicrm/ext
|
||||
|
||||
# extensions
|
||||
# built-in
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.civicrm.search_kit
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.civicrm.afform
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.civicrm.afform_admin
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" civigrant
|
||||
# migration
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" de.systopia.identitytracker
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.project60.banking
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" action-provider
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" form-processor
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" de.systopia.xcm
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" bij1algemeen
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" bij1migratie
|
||||
# misc
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" assignee
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" apikey
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" dataprocessor
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" emailapi
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" group2summary
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.project60.bic
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.project60.sepa
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.civicrm.contactlayout
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.civicrm.recentmenu
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" civirules
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" bij1rules
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.wikimedia.relationshipblock
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" uk.co.vedaconsulting.mosaico
|
||||
|
||||
cv ext:upgrade-db --user="$WORDPRESS_ADMIN_USER"
|
||||
|
||||
cd /var/www/civi
|
||||
wp plugin install --activate civicrm-admin-utilities wpforms-lite wp-2fa
|
||||
|
||||
# remove unused
|
||||
wp plugin delete akismet hello
|
||||
|
||||
# bug in installer?
|
||||
sed -i -e 's,http://testcrm,https://testcrm,' wp-content/uploads/civicrm/civicrm.settings.php
|
||||
cat >> wp-content/uploads/civicrm/civicrm.settings.php << EOF
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
|
||||
cv upgrade:db
|
||||
|
||||
# Install extensions
|
||||
cd wp-content/uploads/civicrm/ext
|
||||
|
||||
# extensions
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.civicrm.search_kit
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.civicrm.afform
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.civicrm.afform_admin
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" civigrant
|
||||
# migration
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" de.systopia.identitytracker
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.project60.banking
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" action-provider
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" form-processor
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" de.systopia.xcm
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" bij1algemeen
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" bij1migratie
|
||||
# misc
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" assignee
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" apikey
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" dataprocessor
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" emailapi
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" group2summary
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.project60.bic
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.project60.sepa
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.civicrm.contactlayout
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.civicrm.recentmenu
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" civirules
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" bij1rules
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" org.wikimedia.relationshipblock
|
||||
cv ext:enable --user="$WORDPRESS_ADMIN_USER" uk.co.vedaconsulting.mosaico
|
||||
|
||||
cv ext:upgrade-db --user="$WORDPRESS_ADMIN_USER"
|
||||
|
||||
# wordpress plugins
|
||||
cd /var/www/html
|
||||
wp plugin install --activate civicrm-admin-utilities wpforms-lite wp-2fa
|
||||
|
||||
# remove unused
|
||||
wp plugin delete akismet hello
|
||||
|
||||
|
Loading…
Reference in New Issue