Replace 'alicelg' on multiple occasions with 'alice-lg'. * config and default config path * README.md * systemd unit, users, paths * Makefile
16 lines
326 B
Bash
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
|