added post install hook

This commit is contained in:
Matthias Hannig 2017-05-29 12:52:54 +02:00
parent bf44931034
commit b8ba5f60da

View File

@ -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