From c7e09b4e944db6d8ab86db0efdbfc29c643e1ac2 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 18 Sep 2023 15:40:49 -0500 Subject: [PATCH] rootfs: nginx export normal Signed-off-by: Robert Nelson --- 06_generate_debian_console_root.sh | 6 ++++++ 06_generate_ubuntu_console_root.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/06_generate_debian_console_root.sh b/06_generate_debian_console_root.sh index 40c2e67..1deee26 100755 --- a/06_generate_debian_console_root.sh +++ b/06_generate_debian_console_root.sh @@ -74,6 +74,12 @@ fi # setuid root ping+ping6 chmod u+s ./ignore/.root/usr/bin/ping ./ignore/.root/usr/bin/ping6 +#Default nginx export +rm -f ./ignore/.root/etc/nginx/sites-enabled/default || true +cp -v ./ignore/.root/etc/bbb.io/templates/nginx/nginx-autoindex ./ignore/.root/etc/nginx/sites-enabled/default +cp -v ./ignore/.root/etc/bbb.io/templates/nginx/*.html ./ignore/.root/var/www/html/ +rm -f ./ignore/.root/var/www/html/index.nginx-debian.html || true + mkdir -p ./ignore/.root/etc/beagleboard/gateware/board-tests/ mkdir -p ./ignore/.root/etc/beagleboard/gateware/default/ mkdir -p ./ignore/.root/etc/microchip/ diff --git a/06_generate_ubuntu_console_root.sh b/06_generate_ubuntu_console_root.sh index 39136ef..938a757 100755 --- a/06_generate_ubuntu_console_root.sh +++ b/06_generate_ubuntu_console_root.sh @@ -78,6 +78,12 @@ fi # setuid root ping+ping6 chmod u+s ./ignore/.root/usr/bin/ping ./ignore/.root/usr/bin/ping6 +#Default nginx export +rm -f ./ignore/.root/etc/nginx/sites-enabled/default || true +cp -v ./ignore/.root/etc/bbb.io/templates/nginx/nginx-autoindex ./ignore/.root/etc/nginx/sites-enabled/default +cp -v ./ignore/.root/etc/bbb.io/templates/nginx/*.html ./ignore/.root/var/www/html/ +rm -f ./ignore/.root/var/www/html/index.nginx-debian.html || true + mkdir -p ./ignore/.root/etc/beagleboard/gateware/board-tests/ mkdir -p ./ignore/.root/etc/beagleboard/gateware/default/ mkdir -p ./ignore/.root/etc/microchip/