We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6771ac commit edfea2bCopy full SHA for edfea2b
entrypoint.sh
@@ -10,6 +10,12 @@ if [ ! "$(ls -A "/var/www/wp-content" 2>/dev/null)" ]; then
10
cp -r /usr/src/wordpress/wp-content /var/www/
11
chown -R nobody:nobody /var/www
12
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
19
# Check if wp-secrets.php exists
20
if ! [ -f "/var/www/wp-content/wp-secrets.php" ]; then
21
echo '<?php' > /var/www/wp-content/wp-secrets.php
0 commit comments