blob: 371756ebdda350eeb1a1a6ff0ff0f983e9429590 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
post_install() {
if ! getent group opendaylight >/dev/null; then
groupadd opendaylight --system
fi
if ! getent passwd opendaylight >/dev/null; then
useradd -c 'OpenDaylight user' -g opendaylight -d '/opt/opendaylight' \
-s /bin/bash opendaylight --system
passwd -l opendaylight >/dev/null
fi
chown -R opendaylight:opendaylight '/opt/opendaylight'
}
# vim: set ts=4 sw=4 et:
|