From 59e9c06425b71a13b228c5314aa805fc5fb0f078 Mon Sep 17 00:00:00 2001 From: mcolonna Date: Fri, 20 Jun 2025 17:54:31 +0200 Subject: [PATCH] tmp --- srcs/docker-compose.yml | 1 + srcs/requirements/wordpress/conf/wwwmore/wp-config.php | 6 +++--- srcs/requirements/wordpress/run.sh | 2 +- tmp | 8 ++++++++ 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 tmp diff --git a/srcs/docker-compose.yml b/srcs/docker-compose.yml index af5d6e2..17682c0 100644 --- a/srcs/docker-compose.yml +++ b/srcs/docker-compose.yml @@ -11,6 +11,7 @@ services: volumes: - www:/www:ro - ./__cert:/cert:ro + - ./__logs:/var/log/nginx:rw networks: - network restart: always diff --git a/srcs/requirements/wordpress/conf/wwwmore/wp-config.php b/srcs/requirements/wordpress/conf/wwwmore/wp-config.php index 1b4379b..472e505 100644 --- a/srcs/requirements/wordpress/conf/wwwmore/wp-config.php +++ b/srcs/requirements/wordpress/conf/wwwmore/wp-config.php @@ -23,10 +23,10 @@ define( 'DB_NAME', 'wp' ); /** Database username */ -define( 'DB_USER', 'db' ); # TODO +define( 'DB_USER', 'db' ); /** Database password */ -define( 'DB_PASSWORD', `cat /run/secrets/database-pwd` ); # TODO +define( 'DB_PASSWORD', `cat /run/secrets/database-pwd` ); /** 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', true ); # TODO +define( 'WP_DEBUG', false ); /* Add any custom values between this line and the "stop editing" line. */ diff --git a/srcs/requirements/wordpress/run.sh b/srcs/requirements/wordpress/run.sh index 95d29b6..21aa0d0 100755 --- a/srcs/requirements/wordpress/run.sh +++ b/srcs/requirements/wordpress/run.sh @@ -26,7 +26,7 @@ then echo echo "add files from /conf/wwwmore/" echo - cp -r /conf/wwwmore/. /www + cp -p -r /conf/wwwmore/. /www >/www/.installed echo "if this file exists, that means the database is entirely installed." echo "www directory created!" echo diff --git a/tmp b/tmp new file mode 100644 index 0000000..9718ad1 --- /dev/null +++ b/tmp @@ -0,0 +1,8 @@ +create in vbox: +- install debian iso from https://chuangtzu.ftp.acc.umu.se/debian-cd/current/amd64/iso-cd/debian-12.11.0-amd64-netinst.iso +- login as root +- # apt install sudo +- install 6 debs from https://download.docker.com/linux/debian/dists/bookworm/pool/stable/amd64/ +- # usermod -aG sudo username +- # usermod -aG docker username +- launch probalby \ No newline at end of file