[Pkg-ltsp-devel] Bug#843851: Correction in my proposal
Rolandas Naujikas
rolandas.naujikas at mif.vu.lt
Mon Nov 27 06:58:52 UTC 2017
Hi
I found a serious problem in my solution.
The correct way of passing file system path into systemd unit is by
using systemd-escape. So instead ${MOUNTPOINT} there should be
$(systemd-escape "$MOUNTPOINT"):
=====================================================
if [ -n "${KIOSK_FOUND}" ]; then
if [ -d /run/systemd/system ] && [ -x /bin/systemctl ]; then
if [ "$action" = "add" ]; then
systemctl start ltspfs@$(systemd-escape "$MOUNTPOINT").service
else
systemctl stop ltspfs@$(systemd-escape "$MOUNTPOINT").service
fi
else
su - ltspkiosk -c "LTSPFS_NOAUTH=True
/usr/sbin/ltspfsmounter ${MOUNTPOINT} $action"
fi
fi
=====================================================
Regards
Rolandas Naujikas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ltsp-devel/attachments/20171127/fdd66c35/attachment.sig>
More information about the Pkg-ltsp-devel
mailing list