motd: unbreak for source upgrade
In case of source upgrade path from 12.x proper merge of new /etc installs /etc/motd.template. Becase of that, the system in left without symlink /etc/motd -> /var/run/motd but with stale /etc/motd contents. Fix it creating symlink despite of presence of /etc/motd.template. MFC after: 1 week
This commit is contained in:
parent
c9fdd4f3cc
commit
79a96e294c
@ -38,10 +38,10 @@ motd_start()
|
|||||||
# Otherwise, create an empty template file.
|
# Otherwise, create an empty template file.
|
||||||
install -c -o root -g wheel -m ${PERMS} /dev/null "${TEMPLATE}"
|
install -c -o root -g wheel -m ${PERMS} /dev/null "${TEMPLATE}"
|
||||||
fi
|
fi
|
||||||
# Provide compatibility symlink:
|
fi
|
||||||
if [ ! -h "${COMPAT_MOTD}" ]; then
|
# Provide compatibility symlink:
|
||||||
ln -sF "${TARGET}" "${COMPAT_MOTD}"
|
if [ ! -h "${COMPAT_MOTD}" ]; then
|
||||||
fi
|
ln -sF "${TARGET}" "${COMPAT_MOTD}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
T=`mktemp -t motd`
|
T=`mktemp -t motd`
|
||||||
|
Loading…
Reference in New Issue
Block a user