blob: d954d787bea7bdfb6de05e4bfa536fd4ea3211ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/bin/bash
source /root/tags.conf
# Import the whole database (if wp-cli works, this wont be necessary)
#mysql -u ${MARIADB_USER} -p${MARIADB_PASSWORD} ${MARIADB_DATABASE_NAME} < woocommerce.sql
# Rename wordpress config file
mv /var/www/wordpress/wp-config-sample.php /var/www/wordpress/wp-config.php
# Replace values database connection
# Replace values with .env VARIABLES
sed -ie "s/database_name_here/${WORDPRESS_DATABASE_NAME}/g" /var/www/wordpress/wp-config.php \
&& sed -ie "s/username_here/${WORDPRESS_DATABASE_USER}/g" /var/www/wordpress/wp-config.php \
&& sed -ie "s/password_here/${WORDPRESS_DATABASE_PASSWORD}/g" /var/www/wordpress/wp-config.php \
&& sed -ie "s/localhost/${WORDPRESS_DATABASE_HOST}/g" /var/www/wordpress/wp-config.php
# Install WP (either do it here, or through the docker-compose.yml).
#wp core install --allow-root --url=test.woocommerce.taler.net --title=GNU Taler for WooCommerce --admin_user=admin --admin_password=admin --admin_email=info@example.com
# Enable theme shop-here
#wp theme enable shop-here
# Activate Woocommerce plugin
#wp plugin activate woocommerce
# Activate GNU Taler plugin
#wp plugin activate gnu-taler-payment-for-woocommerce
# Import products into database
#wp import /woocommerce-products-backup.xml --authors=create
service nginx start
service php${PHP_VERSION}-fpm start
while true; do
sleep 100;
done
|