add systemd service deployement
This commit is contained in:
parent
5c40387ffb
commit
56acc3e98c
|
@ -1,5 +1,5 @@
|
|||
Package: amp-upgrade-ejabberd
|
||||
Version: 1.03
|
||||
Version: 1.05
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue