alice-lg/install/scripts/after_install
Benedikt Rudolph 41a17fe99f Consequent use of 'alice-lg' instead of 'alicelg'
Replace 'alicelg' on multiple occasions with 'alice-lg'.
* config and default config path
* README.md
* systemd unit, users, paths
* Makefile
2019-01-17 13:58:42 +01:00

16 lines
326 B
Bash

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