This commit is contained in:
Kiara Grouwstra 2023-10-16 23:30:59 +02:00
parent fad654375f
commit 781d0f9d5b
1 changed files with 29 additions and 34 deletions

View File

@ -59,22 +59,10 @@ printf '%s\n' "g/$STRING/d" a "$SALT" . w | ed -s wp-config.php
# Convert Windows line endings to *nix style
sed -i '' 's/\r//g' wp-config.php
export BIJ1_SETTINGS="
define( 'LOGO_BIG_PATH', '/wp-content/themes/BIJ1/img/afdelingen/arnhem-nijmegen-breed.svg' );
define( 'LOGO_SMALL_PATH', '/wp-content/themes/BIJ1/img/afdelingen/arnhem-nijmegen.svg' );
define( 'IS_MAIN_SITE', false);
"
# Add custom BIJ1 settings to wp-config in the "custom values" block
perl -0777 -pe 's/(.*custom values[^\n]*)/$1\n$ENV{BIJ1_SETTINGS}/s' wp-config.php > wp-config-new.php
rm wp-config.php
mv wp-config-new.php wp-config.php
# Setup template
git clone https://code.bij1.org/bij1/bij1-wp-theme.git tmp
git clone https://code.bij1.org/bij1/wp-theme-simple-campaign.git tmp
rm -rf wp-content/themes/twenty*
mv tmp/src wp-content/themes/BIJ1
mv tmp/src wp-content/themes/simple-campaign
rm -rf tmp/
echo "Installing Wordpress, please note down the password"
@ -83,25 +71,32 @@ echo -e "\n\n\n"
echo "Installing plugins"
./wp plugin install acf.zip --activate --allow-root > /dev/null
./wp plugin install acf-options-for-polylang --activate --allow-root > /dev/null
./wp plugin install admin-menu-editor --activate --allow-root > /dev/null
./wp plugin install advanced-custom-fields-pro --activate --allow-root > /dev/null
./wp plugin install ajax-load-more --activate --allow-root > /dev/null
./wp plugin install gosign-gallery-box-block --activate --allow-root > /dev/null
./wp plugin install polylang --activate --allow-root > /dev/null
./wp plugin install simple-custom-post-order --activate --allow-root > /dev/null
./wp plugin install ics-calendar --activate --allow-root > /dev/null
./wp plugin install easy-wp-smtp --activate --allow-root
./wp plugin install opengraph --activate --allow-root
./wp plugin install advanced-custom-fields --activate --allow-root
# ./wp plugin install acf.zip --activate --allow-root
# ./wp plugin install https://gitlab.com/wordpress-premium/advanced-custom-fields-pro/-/archive/v6.2.0/advanced-custom-fields-pro-v6.2.0.zip --activate --allow-root
./wp plugin install add-on-cf7-for-airtable --activate --allow-root
./wp plugin install cf7-to-zapier --activate --allow-root
./wp plugin install coming-soon --activate --allow-root
./wp plugin install cf7-conditional-fields --activate --allow-root
./wp plugin install contact-form-7 --activate --allow-root
./wp plugin install contact-form-7-dynamic-text-extension --activate --allow-root
./wp plugin install contact-form-7-civicrm-integration --activate --allow-root
./wp plugin install wp-gdpr-compliance --activate --allow-root
./wp plugin install doneren-met-mollie --activate --allow-root
./wp plugin install doi-helper --activate --allow-root
./wp plugin install email-verification-for-contact-form-7 --activate --allow-root
./wp plugin install gravityforms --activate --allow-root # https://github.com/pronamic/gravityforms
./wp plugin install gravityforms-nl --activate --allow-root
./wp plugin install gravityformsgutenberg --activate --allow-root
./wp plugin install gravityformsmailchimp --activate --allow-root
./wp plugin install gravityformswebhooks --activate --allow-root
./wp plugin install gravityformszapier --activate --allow-root
./wp plugin install header-footer --activate --allow-root
./wp plugin install pronamic-ideal --activate --allow-root # https://github.com/pronamic/wp-pronamic-pay
./wp plugin install pronamic-pay-with-mollie-for-contact-form-7 --activate --allow-root
./wp plugin install wp-2fa --activate --allow-root
./wp plugin install wp-crontrol --activate --allow-root
./wp plugin install wordpress-seo --activate --allow-root
echo "Activate BIJ1 theme"
./wp theme activate BIJ1 --allow-root
echo "Create menus"
./wp menu create "Header menu" --allow-root
./wp menu create "Informatie" --allow-root
./wp menu create "Kom in actie" --allow-root
./wp menu create "Language" --allow-root
./wp menu create "Main" --allow-root
./wp menu create "Secondary" --allow-root
./wp theme activate simple-campaign --allow-root