summaryrefslogtreecommitdiffhomepage
path: root/tools/contrib/centos/add_gobgpd_account.sh
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-07 13:48:38 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-07 20:44:25 +0900
commitc4775c42510d1f1ddd55036dc19e982712fa6a0b (patch)
tree6ec8b61d4338c809e239e3003a2d32d480898e22 /tools/contrib/centos/add_gobgpd_account.sh
parentb3079759aa13172fcb548a83da9a9653d8d5fed4 (diff)
follow Standard Go Project Layout
https://github.com/golang-standards/project-layout Now you can see clearly what are private and public library code. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools/contrib/centos/add_gobgpd_account.sh')
-rwxr-xr-xtools/contrib/centos/add_gobgpd_account.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/contrib/centos/add_gobgpd_account.sh b/tools/contrib/centos/add_gobgpd_account.sh
new file mode 100755
index 00000000..05ee46fe
--- /dev/null
+++ b/tools/contrib/centos/add_gobgpd_account.sh
@@ -0,0 +1,6 @@
+groupadd --system gobgpd
+useradd --system -d /var/lib/gobgpd -s /bin/bash -g gobgpd gobgpd
+mkdir -p /var/{lib,run,log}/gobgpd
+chown -R gobgpd:gobgpd /var/{lib,run,log}/gobgpd
+mkdir -p /etc/gobgpd
+chown -R gobgpd:gobgpd /etc/gobgpd