Commit 50ee0282 authored by Diego Pasqualin's avatar Diego Pasqualin

le-proinfodata: Only configure lightdm if it's not already configured

Signed-off-by: 's avatarDiego Pasqualin <dpasqualin@c3sl.ufpr.br>
parent 2ab00534
......@@ -24,6 +24,8 @@
SEED_MEC_HOME="/opt/seed_mec"
BACKUP_DIR="/opt/seed_mec_backup"
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
bunzip2 -f $LBFILE
......@@ -50,7 +52,11 @@ if test -f "${BACKUP_DIR}/SEED2/client/conf/inep"; then
rm -rf "${BACKUP_DIR}"
fi
echo "session-setup-script=exec_dialog.sh" >> /etc/lightdm/lightdm.conf
# Set lightdm to open the le-proinfodata configuration script when user
# session starts
if ! grep -q $SESSION_SETUP_SCRIPT $LIGHTDM_CONF; then
echo "$SESSION_SETUP_SCRIPT" >> $LIGHTDM_CONF
fi
# 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