From ff1405edeef492107b545fde87152de8cee49888 Mon Sep 17 00:00:00 2001 From: OnlineDynamic Date: Wed, 8 Jan 2025 14:40:48 +0000 Subject: [PATCH 1/2] upgrade script to lock down mod_status to localhost only --- upgrade/93/upgrade.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 upgrade/93/upgrade.sh diff --git a/upgrade/93/upgrade.sh b/upgrade/93/upgrade.sh new file mode 100644 index 000000000..d7abdb1b9 --- /dev/null +++ b/upgrade/93/upgrade.sh @@ -0,0 +1,12 @@ +#!/bin/bash +##################################### + +BINDIR=$(cd $(dirname $0) && pwd) +. ${BINDIR}/../../scripts/common + + +#copy across new apache conf for mod_status +cat /opt/fpp/etc/apache2.status > /etc/apache2/mods-enabled/status.conf +#restart apache +sudo service apache2 restart + From 2b48c3c6b846e8bf0c652df837b0b6446e90648e Mon Sep 17 00:00:00 2001 From: OnlineDynamic Date: Wed, 8 Jan 2025 14:43:00 +0000 Subject: [PATCH 2/2] add execute permissions to upgrade script --- upgrade/93/upgrade.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 upgrade/93/upgrade.sh diff --git a/upgrade/93/upgrade.sh b/upgrade/93/upgrade.sh old mode 100644 new mode 100755