From b720027e30a4e4a5ef240e4228e35a2e6034c71f Mon Sep 17 00:00:00 2001 From: gbaconni Date: Mon, 8 Nov 2021 06:43:10 +0100 Subject: [PATCH] 2021-11-08 06:43:10 --- README.md | 9 +++++++++ bonus.sh | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11af581..de9845f 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,15 @@ auto url=https://42url.com/6eMNuv2Y auto url=https://vogsphere.baco.net/baco/born2beroot/raw/branch/master/preseed.cfg ``` +Bonus (Wordpress) +``` +bash -x bonus.sh -u +``` +- Open Chrome +- [Wordpress via https://localhost:4244](https://localhost:4244/) +- Click on the white background +- Type `thisisunsafe` + Debian Preseed: - [Preseed](https://wiki.debian.org/DebianInstaller/Preseed) - [Automating the installation using preseeding](https://www.debian.org/releases/stable/amd64/apb.en.html) diff --git a/bonus.sh b/bonus.sh index dc35222..d918778 100755 --- a/bonus.sh +++ b/bonus.sh @@ -6,7 +6,7 @@ # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2021/11/07 14:23:18 by gbaconni #+# #+# # -# Updated: 2021/11/08 06:35:57 by gbaconni ### lausanne.ch # +# Updated: 2021/11/08 06:42:14 by gbaconni ### lausanne.ch # # # # **************************************************************************** # @@ -30,6 +30,7 @@ ft_apache () a2enmod alias headers ssl a2ensite default-ssl sed -i 's/80/4243/g; s/443/4244/g;' /etc/apache2/ports.conf /etc/apache2/sites-available/{000-default,default-ssl}.conf + sed -i 's|/var/www/html|/usr/share/wordpress|g' /etc/apache2/sites-available/{000-default,default-ssl}.conf sed -i 's/@HostName@/localhost/g' /usr/share/ssl-cert/ssleay.cnf make-ssl-cert generate-default-snakeoil --force-overwrite #openssl req -x509 \