Skip to content

Commit edfea2b

Browse files
committed
Add wp-cli.yml setup in entrypoint script
1 parent b6771ac commit edfea2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ if [ ! "$(ls -A "/var/www/wp-content" 2>/dev/null)" ]; then
1010
cp -r /usr/src/wordpress/wp-content /var/www/
1111
chown -R nobody:nobody /var/www
1212
fi
13+
if ! [ -f "/var/www/wp-content/wp-cli.yml" ]; then
14+
echo 'Setting up wp-cli.yml'
15+
# Copy wp-cli.yml from Wordpress src to volume
16+
cp /usr/src/wordpress/wp-cli.yml /var/www/wp-content/
17+
chown nobody:nobody /var/www/wp-content/wp-cli.yml
18+
fi
1319
# Check if wp-secrets.php exists
1420
if ! [ -f "/var/www/wp-content/wp-secrets.php" ]; then
1521
echo '<?php' > /var/www/wp-content/wp-secrets.php

0 commit comments

Comments
 (0)