Commit 983c083d authored by Diego Pasqualin's avatar Diego Pasqualin

le-proinfodata: Remove from divert some files we no longer need

Signed-off-by: 's avatarDiego Pasqualin <>
parent 31a220ba
......@@ -58,6 +58,22 @@ if ! grep -q $SESSION_SETUP_SCRIPT $LIGHTDM_CONF; then
# We will no longer need this files, but as the postrm would only remove the
# diverts when this package were removed, we have to do it here
/etc/init/dbus.conf \
/etc/init/tty1.conf \
for file in $DIVERTS; do
# Why the heck dpkg-divert doesn't return 'false' if the pattern doesn't
# match on the --list option?
if [ -n "$(dpkg-divert --list $file)" ]; then
dpkg-divert --package le-proinfodata --remove --rename \
--divert ${file}{.real,}
# Make sure the owner of ~seed_mec is seed_mec
chown -R seed_mec:seed_mec "${SEED_MEC_HOME}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment