1 ## arg 1: the new package version
2 ## arg 2: the old package version
3 # shellcheck disable=SC2016
6 if systemctl is-active asd.service &>/dev/null; then
7 echo 'In order to preserve the data, the asd service will now be stopped.'
8 systemctl stop asd.service &>/dev/null
13 for version in 5.69 5.76; do
14 if [ "$(vercmp "$2" "$version")" -lt 0 ]; then
16 echo 'Start the asd service manually after upgrade is complete.'
22 echo 'Consult the manpage (`man 1 asd`) and backup your data before use.'