dev: mariadb users *

other things also
This commit is contained in:
mcolonna 2025-06-20 12:33:59 +02:00
parent 39f90db91d
commit a1d2d83f60
11 changed files with 79 additions and 28 deletions

View file

@ -23,10 +23,10 @@
define( 'DB_NAME', 'wp' );
/** Database username */
define( 'DB_USER', 'www' );
define( 'DB_USER', 'db' ); # TODO
/** Database password */
define( 'DB_PASSWORD', `cat /run/secrets/database-pwd` );
define( 'DB_PASSWORD', `cat /run/secrets/database-pwd` ); # TODO
/** Database hostname */
define( 'DB_HOST', 'mariadb:3306' );
@ -85,7 +85,7 @@ $table_prefix = 'wp_';
*
* @link https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
*/
define( 'WP_DEBUG', false );
define( 'WP_DEBUG', true ); # TODO
/* Add any custom values between this line and the "stop editing" line. */

View file

@ -8,10 +8,13 @@ dirisempty()
[ -z "$( ls -A "$1" )" ]
}
if dirisempty /www
if ! [ -f /www/.installed ]
then
echo "download and uncompress wordpress release..."
echo "clean..."
rm -rf -- $(find /www -mindepth 1 -maxdepth 1)
echo
echo "download and uncompress wordpress release..."
apk add curl
apk fix
rm -rf /build
@ -24,6 +27,7 @@ then
echo "add files from /conf/wwwmore/"
echo
cp -r /conf/wwwmore/. /www
>/www/.installed echo "if this file exists, that means the database is entirely installed."
echo "www directory created!"
echo
fi