sftpgo/pkgs/scripts/rpm/preremove
Nicola Murino 03bf595525 automatically build deb and rpm Linux packages
The packages are built after each tag/commit

Fixes #176
2020-09-26 14:07:24 +02:00

5 lines
189 B
Text

if [ $1 -eq 0 ]; then
# Package removal, not upgrade
/bin/systemctl --no-reload disable sftpgo.service >/dev/null 2>&1 || :
/bin/systemctl stop sftpgo.service >/dev/null 2>&1 || :
fi