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 <dpasqualin@c3sl.ufpr.br>
parent 31a220ba
......@@ -58,6 +58,22 @@ if ! grep -q $SESSION_SETUP_SCRIPT $LIGHTDM_CONF; then
echo "$SESSION_SETUP_SCRIPT" >> $LIGHTDM_CONF
fi
# 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
DIVERTS="
/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,}
fi
done
# 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