summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-05 12:05:39 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-05 12:05:39 +0100
commite6b7da5a624b4a36d8e475487399817c5fa5e0c3 (patch)
treed609d1f1c267a511beff68e5bc33b50a341a10bc
parent50972a39465233a5514b1e2869848266add0ae60 (diff)
downloaditzks-systems-e6b7da5a624b4a36d8e475487399817c5fa5e0c3.tar.gz
itzks-systems-e6b7da5a624b4a36d8e475487399817c5fa5e0c3.tar.bz2
itzks-systems-e6b7da5a624b4a36d8e475487399817c5fa5e0c3.zip
sbin/itzks-update-disklserver-squashfs-images: Ignore errors when removing ltsp.conf and it is not (yet) present.
-rwxr-xr-xsbin/itzks-update-disklserver-squashfs-images2
1 files changed, 1 insertions, 1 deletions
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