Escape ${PLASMA_SESSION_FILE}

...because this is a shell script created by a pile of echo
commands. I mean, obviously. Duh. Nothing hard to understand here!

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2021-04-22 23:34:44 -07:00
parent 75e442287b
commit 49b20ffebd

View File

@ -32,12 +32,12 @@ fi
# set up autologin for user liveuser
if [ -f /etc/sddm.conf ]; then
sed -i 's/^#User=.*/User=liveuser/' /etc/sddm.conf
sed -i "s/^#Session=.*/Session=${PLASMA_SESSION_FILE}/" /etc/sddm.conf
sed -i "s/^#Session=.*/Session=\${PLASMA_SESSION_FILE}/" /etc/sddm.conf
else
cat > /etc/sddm.conf << SDDM_EOF
[Autologin]
User=liveuser
Session=${PLASMA_SESSION_FILE}
Session=\${PLASMA_SESSION_FILE}
SDDM_EOF
fi