dist/debian: keep /etc/systemd .conf files on 'remove'

Since dpkg does not re-install conffiles when it removed by user,
currently we are missing dependencies.conf and sysconfdir.conf on rollback.
To prevent this, we need to stop running
'rm -rf /etc/systemd/system/scylla-server.service.d/' on 'remove'.

Fixes #5734
This commit is contained in:
Takuya ASADA
2020-02-08 17:07:25 +09:00
committed by Avi Kivity
parent 6c4f2b9717
commit 43097854a5

View File

@@ -6,8 +6,12 @@ case "$1" in
purge|remove)
rm -rf /etc/systemd/system/scylla-housekeeping-daily.service.d/
rm -rf /etc/systemd/system/scylla-housekeeping-restart.service.d/
rm -rf /etc/systemd/system/scylla-server.service.d/
rm -rf /etc/systemd/system/scylla-helper.slice.d/
# We need to keep dependencies.conf and sysconfdir.conf on 'remove',
# otherwise it will be missing after rollback.
if [ "$1" = "purge" ]; then
rm -rf /etc/systemd/system/scylla-server.service.d/
fi
;;
esac