Update ma1sd to mxids
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# Add service account
|
||||
useradd -r ma1sd || true
|
||||
useradd -r mxids || true
|
||||
|
||||
# Set permissions for data directory
|
||||
chown -R ma1sd:ma1sd %DEB_DATA_DIR%
|
||||
chown -R mxids:mxids %DEB_DATA_DIR%
|
||||
|
||||
# Create symlink to ma1sd run script
|
||||
ln -sfT /usr/lib/ma1sd/ma1sd /usr/bin/ma1sd
|
||||
# Create symlink to mxids run script
|
||||
ln -sfT /usr/lib/mxids/mxids /usr/bin/mxids
|
||||
|
||||
# Enable systemd service
|
||||
systemctl enable ma1sd.service
|
||||
systemctl enable mxids.service
|
||||
|
||||
# If we already have a config file setup, we attempt to run ma1sd automatically
|
||||
# If we already have a config file setup, we attempt to run mxids automatically
|
||||
# Specifically targeted at upgrades where the service needs to be restarted
|
||||
if [ -f "%DEB_CONF_FILE%" ]; then
|
||||
systemctl restart ma1sd.service
|
||||
systemctl restart mxids.service
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user