From b8ba5f60da99fb133616f7d072c806521e6bf6dd Mon Sep 17 00:00:00 2001 From: Matthias Hannig Date: Mon, 29 May 2017 12:52:54 +0200 Subject: [PATCH] added post install hook --- install/scripts/after_install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 install/scripts/after_install diff --git a/install/scripts/after_install b/install/scripts/after_install new file mode 100644 index 0000000..7282a2f --- /dev/null +++ b/install/scripts/after_install @@ -0,0 +1,16 @@ +#!/bin/bash + +# +# Alice Post Install Hook: +# Create the required user and set permissions +# + +SERVICE=alicelg + +echo "[i] Post install $SERVICE" +echo "[i] Creating user and updating permissions" +useradd --system -d /opt/ecix/$SERVICE $SERVICE + +echo "[i] Fixing permissions" +chown -R $SERVICE:$SERVICE /opt/ecix/$SERVICE +