|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +pushd "${DDEV_DOCROOT}" |
| 4 | + |
| 5 | +wp user create usite1 [email protected] --role=administrator --porcelain --url= "${DDEV_PRIMARY_URL}/site1" |
| 6 | +wp user create usite2 [email protected] --role=administrator --porcelain --url= "${DDEV_PRIMARY_URL}/site2" |
| 7 | +wp user create usite3 [email protected] --role=administrator --porcelain --url= "${DDEV_PRIMARY_URL}/site3" |
| 8 | +wp user create usite4 [email protected] --role=administrator --porcelain --url= "${DDEV_PRIMARY_URL}/site4" |
| 9 | +wp user create usite5 [email protected] --role=administrator --porcelain --url= "${DDEV_PRIMARY_URL}/site5" |
| 10 | + |
| 11 | +wp site create --slug= "site1" [email protected] |
| 12 | +wp site create --slug= "site2" [email protected] |
| 13 | +wp site create --slug= "site3" [email protected] |
| 14 | +wp site create --slug= "site4" [email protected] |
| 15 | +wp site create --slug= "site5" [email protected] |
| 16 | + |
| 17 | +wp user set-role ${ADMIN_USER} administrator --url="${DDEV_PRIMARY_URL}/site1" |
| 18 | +wp user set-role ${ADMIN_USER} administrator --url="${DDEV_PRIMARY_URL}/site2" |
| 19 | +wp user set-role ${ADMIN_USER} administrator --url="${DDEV_PRIMARY_URL}/site3" |
| 20 | +wp user set-role ${ADMIN_USER} administrator --url="${DDEV_PRIMARY_URL}/site4" |
| 21 | +wp user set-role ${ADMIN_USER} administrator --url="${DDEV_PRIMARY_URL}/site5" |
| 22 | + |
| 23 | +wp plugin install user-switching --force --activate-network --version=1.7.0 |
| 24 | + |
| 25 | +wp plugin activate hello --url="${DDEV_PRIMARY_URL}/site2" |
| 26 | +wp plugin activate hello --url="${DDEV_PRIMARY_URL}/site4" |
| 27 | + |
| 28 | +wp theme install twentytwentyone --force |
| 29 | +wp theme install twentytwentytwo --force |
| 30 | +wp theme install twentytwentythree --force |
| 31 | +wp theme install twentytwentyfour --force |
| 32 | + |
| 33 | +wp theme enable twentytwentyfour --network |
| 34 | +wp theme enable twentytwentythree --network |
| 35 | +wp theme enable twentytwentytwo --network |
| 36 | +wp theme enable twentytwentyone --network |
| 37 | + |
| 38 | +cp "/var/www/html/.ddev/commands/favicon1.ico" "/var/www/html/.ddev/wordpress/wp-content/themes/twentytwentyone/favicon.ico" |
| 39 | +cp "/var/www/html/.ddev/commands/favicon2.ico" "/var/www/html/.ddev/wordpress/wp-content/themes/twentytwentytwo/favicon.ico" |
| 40 | +cp "/var/www/html/.ddev/commands/favicon3.ico" "/var/www/html/.ddev/wordpress/wp-content/themes/twentytwentythree/favicon.ico" |
| 41 | +cp "/var/www/html/.ddev/commands/favicon4.ico" "/var/www/html/.ddev/wordpress/wp-content/themes/twentytwentyfour/favicon.ico" |
| 42 | + |
| 43 | +wp theme activate twentytwentyfour --url="${DDEV_PRIMARY_URL}/site4" |
| 44 | +wp theme activate twentytwentythree --url="${DDEV_PRIMARY_URL}/site3" |
| 45 | +wp theme activate twentytwentytwo --url="${DDEV_PRIMARY_URL}/site2" |
| 46 | +wp theme activate twentytwentyone --url="${DDEV_PRIMARY_URL}/site1" |
| 47 | + |
| 48 | + |
0 commit comments