summarylogtreecommitdiffstats
path: root/onos.install
blob: 1d7d09069a421f9b78bbb6b15d22e709de0f1c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
    if ! getent group sdn >/dev/null; then
        groupadd sdn --system
    fi
    if ! getent passwd sdn >/dev/null; then
        useradd -c 'SDN/ONOS daemon user' -g sdn -d '/opt/onos' -s /bin/bash sdn --system
    fi

    chown -R sdn:sdn '/opt/onos'
}

post_upgrade() {
    post_install
}

# vim: set ts=4 sw=4 et: