aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2017-04-24 14:01:42 +0200
committerDee'Kej <deekej@linuxmail.org>2017-05-03 11:53:09 +0200
commite37d6b2c4dc1db8e31d9c230fab929cbc83648b6 (patch)
tree99863afeec04fae87c8ef66eeaeb09b42d604895 /systemd
parent457676588beecd9a32c056a812e59082f3b0989b (diff)
downloadinitscripts-e37d6b2c4dc1db8e31d9c230fab929cbc83648b6.tar
initscripts-e37d6b2c4dc1db8e31d9c230fab929cbc83648b6.tar.gz
initscripts-e37d6b2c4dc1db8e31d9c230fab929cbc83648b6.tar.bz2
initscripts-e37d6b2c4dc1db8e31d9c230fab929cbc83648b6.tar.xz
initscripts-e37d6b2c4dc1db8e31d9c230fab929cbc83648b6.zip
re-add missing $HOSTNAME initialization
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/rhel-readonly4
1 files changed, 4 insertions, 0 deletions
diff --git a/systemd/rhel-readonly b/systemd/rhel-readonly
index 50e5ed97..83b1747b 100755
--- a/systemd/rhel-readonly
+++ b/systemd/rhel-readonly
@@ -5,6 +5,10 @@
. /etc/init.d/functions
+# We need to initialize the $HOSTNAME variable by ourselves now:
+# (It was previously done for RHEL-6 branch, but got lost in time.)
+HOSTNAME="$(hostname)"
+
# Check SELinux status
SELINUX_STATE=
if [ -e "/sys/fs/selinux/enforce" ] && [ "$(cat /proc/self/attr/current)" != "kernel" ]; then