le-proinfodata: Use trigger to ensure consistency of lightdm.conf

Signed-off-by: 's avatarDiego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 9eb35030
Package: le-proinfodata Package: le-proinfodata
Version: 1.2.30 Version: 1.2.34
Maintainer: <proinfodata@c3sl.ufpr.br> Maintainer: <proinfodata@c3sl.ufpr.br>
Architecture: i386 Architecture: i386
Section: main Section: main
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
SEED_MEC_HOME="/opt/seed_mec" SEED_MEC_HOME="/opt/seed_mec"
BACKUP_DIR="/opt/seed_mec_backup" BACKUP_DIR="/opt/seed_mec_backup"
LBFILE="/etc/le-proinfodata/le.zone.bz2" LBFILE="/etc/le-proinfodata/le.zone.bz2"
SESSION_SETUP_SCRIPT="session-setup-script=exec_dialog.sh"
LIGHTDM_CONF="/etc/lightdm/lightdm.conf"
# Descompressing the local base # Descompressing the local base
bunzip2 -f $LBFILE bunzip2 -f $LBFILE
...@@ -54,11 +52,11 @@ fi ...@@ -54,11 +52,11 @@ fi
# Set lightdm to open the le-proinfodata configuration script when user # Set lightdm to open the le-proinfodata configuration script when user
# session starts # session starts
if ! grep -q $SESSION_SETUP_SCRIPT $LIGHTDM_CONF; then if ! grep -q "session.*exec_dialog.sh" "/etc/lightdm/lightdm.conf"; then
echo "$SESSION_SETUP_SCRIPT" >> $LIGHTDM_CONF sed -i '/\[SeatDefaults\]/ a\session-setup-script=/usr/local/bin/exec_dialog.sh' \
/etc/lightdm/lightdm.conf
fi fi
# We will no longer need this files, but as the postrm would only remove the # 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 when this package were removed, we have to do it here
DIVERTS=" DIVERTS="
......
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