add systemd service deployement

This commit is contained in:
Thomas Legay 2021-04-11 13:00:04 +02:00
parent 5c40387ffb
commit 56acc3e98c
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Package: amp-upgrade-ejabberd
Version: 1.03
Version: 1.05
Section: base
Priority: optional
Architecture: all

View File

@ -7,6 +7,7 @@ DOWNLOAD_URL=${SITE_URL}$(wget -qO - ${SITE_URL}${VERSION_URL} | grep -oE "/down
FILE=/tmp/ejabberd.deb
wget -qO $FILE $DOWNLOAD_URL
dpkg -i $FILE
cp /opt/$(ls /opt/ -rt | grep ejabberd | tail -n 1)/bin/ejabberd.service /etc/systemd/system/ejabberd.service
systemctl daemon-reload
systemctl stop ejabberd
pkill -9 -U $(id ejabberd -u)