[debian-edu-commits] [Git][debian-edu/debian-edu-config][personal/sunweaver/debian-edu-ltsp-install-refactoring] fixup: file not found error in for loop

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Thu Oct 15 12:07:38 BST 2026



Mike Gabriel pushed to branch personal/sunweaver/debian-edu-ltsp-install-refactoring at Debian Edu / debian-edu-config


Commits:
abdce15a by Mike Gabriel at 2026-10-15T13:07:32+02:00
fixup: file not found error in for loop

- - - - -


3 changed files:

- sbin/debian-edu-ltsp-install
- share/debian-edu-config/tools/chromium-ldapconf
- share/debian-edu-config/tools/firefox-ldapconf


Changes:

=====================================
sbin/debian-edu-ltsp-install
=====================================
@@ -20,9 +20,9 @@
 # first edited:     2019-11-21
 
 version=2026-10-14
-ltsp_preinst_dir="/usr/lib/debian-edu-config/ltsp-preinst.d/"
-ltsp_install_dir="/usr/lib/debian-edu-config/ltsp-install.d/"
-ltsp_postinst_dir="/usr/lib/debian-edu-config/ltsp-postinst.d/"
+ltsp_preinst_dir="/usr/lib/debian-edu-config/ltsp-preinst.d"
+ltsp_install_dir="/usr/lib/debian-edu-config/ltsp-install.d"
+ltsp_postinst_dir="/usr/lib/debian-edu-config/ltsp-postinst.d"
 
 set -e
 
@@ -202,7 +202,7 @@ cat /dev/null > /etc/ltsp/image-local.excludes
 
 # Source snippets from debian-edu-config LTSP installer's preinst directory.
 if [ -n "$(find ${ltsp_preinst_dir} -mindepth 1 -maxdepth 1 -type f)" ]; then
-	for preinst_file in "${ltsp_preinst_dir}"/[0-9][0-9]_{common,${install_variant}}_*.sh; do
+	for preinst_file in $(ls -1 "${ltsp_preinst_dir}"/[0-9][0-9]_{common,${install_variant}}_*.sh); do
 		source "${preinst_file}"
 	done
 fi
@@ -216,7 +216,7 @@ fi
 
 # Source snippets from debian-edu-config LTSP installer's postinst directory.
 if [ -n "$(find ${ltsp_postinst_dir} -mindepth 1 -maxdepth 1 -type f)" ]; then
-	for postinst_file in "${ltsp_postinst_dir}"/[0-9][0-9]_{common,${install_variant}}_*.sh; do
+	for postinst_file in $(ls -1 "${ltsp_postinst_dir}"/[0-9][0-9]_{common,${install_variant}}_*.sh); do
 		source "${postinst_file}"
 	done
 fi


=====================================
share/debian-edu-config/tools/chromium-ldapconf
=====================================
@@ -16,8 +16,10 @@ esac
 
 case $PROFILE in
     *LTSP-Server*)
-        if [ -d /opt/ltsp ]; then
-            find /opt/ltsp/ -mindepth 1 -maxdepth 1 -type d -exec chroot {} /usr/share/debian-edu-config/tools/update-chromium-homepage ldap:homepage \;
-        fi
+        if [ -d /srv/ltsp ]; then
+            find /srv/ltsp/ -mindepth 1 -maxdepth 1 -type d | while read ltspchroot; do
+                chroot "${ltspchroot}" sh -c "if [ -x /usr/share/debian-edu-config/tools/update-chromium-homepage ]; then /usr/share/debian-edu-config/tools/update-chromium-homepage ldap:homepage; fi"
+	    done
+	fi
         ;;
 esac


=====================================
share/debian-edu-config/tools/firefox-ldapconf
=====================================
@@ -16,8 +16,10 @@ esac
 
 case $PROFILE in
     *LTSP-Server*)
-        if [ -d /opt/ltsp ]; then
-            find /opt/ltsp/ -mindepth 1 -maxdepth 1 -type d -exec chroot {} /usr/share/debian-edu-config/tools/update-firefox-homepage ldap:homepage \;
+        if [ -d /srv/ltsp ]; then
+            find /srv/ltsp/ -mindepth 1 -maxdepth 1 -type d | while read ltspchroot; do
+                chroot "${ltspchroot}" sh -c "if [ -x /usr/share/debian-edu-config/tools/update-chromium-homepage ]; then /usr/share/debian-edu-config/tools/update-firefox-homepage ldap:homepage; fi"
+            done
         fi
         ;;
 esac



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/abdce15ab893c10fa8b050f20e5481f665a1284a

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/abdce15ab893c10fa8b050f20e5481f665a1284a
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20261015/6e7eb2bc/attachment-0001.htm>


More information about the debian-edu-commits mailing list