diff options
author | David Kaspar [Dee'Kej] <dkaspar@redhat.com> | 2017-04-24 14:01:42 +0200 |
---|---|---|
committer | Dee'Kej <deekej@linuxmail.org> | 2017-04-26 13:25:17 +0200 |
commit | 4f8720706228d316e57ed95c3676e3478eb380fc (patch) | |
tree | d3bedcf56501ca054db4a7e29634a7a3a187a1fd /systemd | |
parent | 582fc4d608f8054e14790b3bd644035e2d03a688 (diff) | |
download | initscripts-4f8720706228d316e57ed95c3676e3478eb380fc.tar initscripts-4f8720706228d316e57ed95c3676e3478eb380fc.tar.gz initscripts-4f8720706228d316e57ed95c3676e3478eb380fc.tar.bz2 initscripts-4f8720706228d316e57ed95c3676e3478eb380fc.tar.xz initscripts-4f8720706228d316e57ed95c3676e3478eb380fc.zip |
re-add missing $HOSTNAME initialization
Diffstat (limited to 'systemd')
-rwxr-xr-x | systemd/fedora-readonly | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/systemd/fedora-readonly b/systemd/fedora-readonly index 50e5ed97..83b1747b 100755 --- a/systemd/fedora-readonly +++ b/systemd/fedora-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 |