summarylogtreecommitdiffstats
path: root/onos.install
diff options
context:
space:
mode:
Diffstat (limited to 'onos.install')
-rw-r--r--onos.install5
1 files changed, 2 insertions, 3 deletions
diff --git a/onos.install b/onos.install
index eb028b25fb2a..fe8ec638668e 100644
--- a/onos.install
+++ b/onos.install
@@ -3,11 +3,10 @@ post_install() {
groupadd sdn --system
fi
if ! getent passwd sdn >/dev/null; then
- useradd -c 'ONOS user' -g sdn sdn --system
+ useradd -c 'ONOS user' -g sdn -d '/opt/onos' -s /bin/bash sdn --system
fi
- chown -R sdn:sdn /opt/onos
- chmod -R o-w /opt/onos
+ chown -R sdn:sdn '/opt/onos'
}
# vim: set ts=4 sw=4 et: