summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-06 16:02:37 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-06 16:02:37 +0100
commitf75b1a592fde2cae0f5b30d5f4066ad489bd899b (patch)
tree2b234ec7e80d086be34162d637e897a15321843a
parent681cd4f50e74e16d39bf4939bf40570e0406ca07 (diff)
downloaditzks-systems-f75b1a592fde2cae0f5b30d5f4066ad489bd899b.tar.gz
itzks-systems-f75b1a592fde2cae0f5b30d5f4066ad489bd899b.tar.bz2
itzks-systems-f75b1a592fde2cae0f5b30d5f4066ad489bd899b.zip
sbin/itzks-update-disklserver-squashfs-images: Use renamed ltsp.conf.itzks-systems-disklserver.in file.
-rwxr-xr-xsbin/itzks-update-disklserver-squashfs-images6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/itzks-update-disklserver-squashfs-images b/sbin/itzks-update-disklserver-squashfs-images
index af6be7e..cfe229c 100755
--- a/sbin/itzks-update-disklserver-squashfs-images
+++ b/sbin/itzks-update-disklserver-squashfs-images
@@ -29,7 +29,7 @@ mkdir -p ${TMPDIR}/
chown root:root ${TMPDIR}
chmod 1777 ${TMPDIR}
-if [ -e "/etc/ltsp/ltsp.conf.in" ] && cat "/etc/ltsp/ltsp.conf.in" | grep -v "#" | grep -q "@rootpw@"; then
+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
@@ -37,12 +37,12 @@ if [ -e "/etc/ltsp/ltsp.conf.in" ] && cat "/etc/ltsp/ltsp.conf.in" | grep -v "#"
chown root:root /etc/ltsp/ltsp.conf
chmod 0600 /etc/ltsp/ltsp.conf
- echo "# THIS FILE IS RECREATED DAILY FROM /etc/ltsp/ltsp.conf.in - DON'T EDIT THIS FILE" >> /etc/ltsp/ltsp.conf
+ echo "# THIS FILE IS RE-CREATED DAILY FROM /etc/ltsp/ltsp.conf.itzks-systems-disklserver.in - DON'T EDIT THIS FILE" >> /etc/ltsp/ltsp.conf
echo >> /etc/ltsp/ltsp.conf
# configure LTSP before creating ltsp.img and iPXE config
host_rootpw=$(cat /etc/shadow | grep -E "^root:" | cut -d":" -f2)
- [ "$host_rootpw" ] && export host_rootpw && perl -p -e "s/\@rootpw\@/\$ENV{host_rootpw}/g" "/etc/ltsp/ltsp.conf.in" >> "/etc/ltsp/ltsp.conf"
+ [ "$host_rootpw" ] && export host_rootpw && perl -p -e "s/\@rootpw\@/\$ENV{host_rootpw}/g" "/etc/ltsp/ltsp.conf.itzks-systems-disklserver.in" >> "/etc/ltsp/ltsp.conf"
unset host_rootpw
fi