Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy default entrypoint wordpress 6-apache
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Generate file holding custom keys | ||
[[ ! -f /data/secret-key.php ]] && \ | ||
echo "<?php " > /data/secret-key.php && \ | ||
curl https://api.wordpress.org/secret-key/1.1/salt >> /data/secret-key.php && \ | ||
chown www-data:www-data /data/secret-key.php | ||
|
||
# Uncomment to mount plugins directory if you don't version them | ||
#rm -rf /var/www/html/wp-content/plugins && \ | ||
# mkdir -p /data/wp-content/plugins && \ | ||
# ln -sfn /data/wp-content/plugins /var/www/html/wp-content/plugins && \ | ||
# chown -h www-data:www-data /var/www/html/wp-content/plugins /data/wp-content/plugins | ||
|
||
# Uncomment to mount themes directory if you don't version them | ||
#rm -rf /var/www/html/wp-content/themes && \ | ||
# mkdir -p /data/wp-content/themes && \ | ||
# ln -sfn /data/wp-content/themes /var/www/html/wp-content/themes && \ | ||
# chown www-data:www-data /var/www/html/wp-content/themes /data/wp-content/themes |