[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] libexec/debian-edu-apache2-update-tjener-aliases: Only execute on host...

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Mon Nov 9 09:52:40 GMT 2026



Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config


Commits:
8bca3c00 by Mike Gabriel at 2026-11-09T10:52:33+01:00
libexec/debian-edu-apache2-update-tjener-aliases: Only execute on host 'tjener', only if 'root'. (Closes: #1153506).

- - - - -


1 changed file:

- libexec/debian-edu-apache2-update-tjener-aliases


Changes:

=====================================
libexec/debian-edu-apache2-update-tjener-aliases
=====================================
@@ -14,6 +14,19 @@
 
 set -euo pipefail
 
+# -----------------------------------------------------------------------------
+# Only run on tjener and only as root
+# -----------------------------------------------------------------------------
+if [ "$(whoami)" != "root" ] ; then
+	echo "ERROR: $(basename $0) needs to be run as 'root', aborting..."
+	exit 1
+fi
+
+if [ "$(hostname -s)" != "tjener" ]; then
+	# silently exit, nothing to be done if not on tjener
+	exit 0
+fi
+
 # -----------------------------------------------------------------------------
 # Configuration
 # -----------------------------------------------------------------------------



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/8bca3c00b94eacb439f30129dd334e553d6234da

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/8bca3c00b94eacb439f30129dd334e553d6234da
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20261109/79950266/attachment-0001.htm>


More information about the debian-edu-commits mailing list