mirror of
https://github.com/alice-lg/alice-lg.git
synced 2024-05-11 05:55:03 +00:00
added post install hook
This commit is contained in:
16
install/scripts/after_install
Normal file
16
install/scripts/after_install
Normal 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
|
||||
|
Reference in New Issue
Block a user