From e6b7da5a624b4a36d8e475487399817c5fa5e0c3 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 5 Feb 2022 12:05:39 +0100 Subject: sbin/itzks-update-disklserver-squashfs-images: Ignore errors when removing ltsp.conf and it is not (yet) present. --- sbin/itzks-update-disklserver-squashfs-images | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/itzks-update-disklserver-squashfs-images b/sbin/itzks-update-disklserver-squashfs-images index c577fcf..966484b 100755 --- a/sbin/itzks-update-disklserver-squashfs-images +++ b/sbin/itzks-update-disklserver-squashfs-images @@ -38,7 +38,7 @@ chmod 1777 ${TMPDIR} if [ -e "/etc/ltsp/ltsp.conf.itzks-systems-disklserver.in" ] && cat "/etc/ltsp/ltsp.conf.itzks-systems-disklserver.in" | grep -v "#" | grep -q "@rootpw@"; then # Drop previous ltsp.conf (yes, we want to do that!) - rm /etc/ltsp/ltsp.conf + rm -f /etc/ltsp/ltsp.conf touch /etc/ltsp/ltsp.conf chown root:root /etc/ltsp/ltsp.conf chmod 0600 /etc/ltsp/ltsp.conf -- cgit v1.2.3