1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00

16 lines
326 B
Plaintext
Raw Normal View History

2017-05-29 12:52:54 +02:00
#!/bin/bash
#
# Alice Post Install Hook:
# Create the required user and set permissions
#
SERVICE=alice-lg
2017-05-29 12:52:54 +02:00
echo "[i] Post install $SERVICE"
echo "[i] Creating user and updating permissions"
useradd --system -d /opt/alice-lg/$SERVICE $SERVICE
2017-05-29 12:52:54 +02:00
echo "[i] Fixing permissions"
chown -R $SERVICE:$SERVICE /opt/alice-lg/$SERVICE