[debian-edu-commits] debian-edu/ 80/437: * try to use edit-init script

Mike Gabriel sunweaver at debian.org
Sun Mar 2 23:49:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository debian-edu-artwork.

commit 6e88dd41f5545ffc300eaba922b64bbd1d8213ad
Author: Steffen Joeris <white at debian.org>
Date:   Fri Sep 15 05:48:11 2006 +0000

    * try to use edit-init script
---
 debian/update-artwork | 37 ++++++++++++++++++++++---------------
 1 file changed, 22 insertions(+), 15 deletions(-)

diff --git a/debian/update-artwork b/debian/update-artwork
index c9c364d..603c752 100644
--- a/debian/update-artwork
+++ b/debian/update-artwork
@@ -71,25 +71,32 @@ activate_kiosk_profiles() {
 	# Install the file kde-user-profile if it does not exist to ensure
 	# we can use our kiosk modes
 	if [ ! -e "$KIOSK_MAP_FILE" ] ; then
-	        cat >> $KIOSK_MAP_FILE << EOT
-[General]
-groups=students
-
-[Groups]
-students=debian_edu_pupils
-EOT
+	        $editini $KIOSK_MAP_FILE '[General]' 'groups=' 'students'
+	        $editini $KIOSK_MAP_FILE '[Groups]' 'students=' 'debian_edu_pupils'
+		
+#		cat >> $KIOSK_MAP_FILE << EOT
+#[General]
+#groups=students
+#
+#[Groups]
+#students=debian_edu_pupils
+#EOT
 	fi
 
 	if [ ! -e "$KIOSK_CONFIG_FILE" ] ; then
-        	cat >> $KIOSK_CONFIG_FILE << EOT
-[Directories]
-userProfileMapFile=/etc/kde-user-profile
-
-[Directories-debian_edu_pupils]
-ProfileDescription=Debian-Edu Profile for pupils
-prefixes=/usr/share/debian-edu-artwork/kde-profile/debian_edu_pupils
-EOT
+		$editini $KIOSK_CONFIG_FILE '[Directories]' 'userProfileMapFile=' '/etc/kde-user-profile'
+		$editini $KIOSK_CONFIG_FILE '[Directories-debian_edu_pupils]' 'ProfileDescription=' 'Debian-Edu Profile for pupils'
+		$editini $KIOSK_CONFIG_FILE '[Directories-debian_edu_pupils]' 'prefixes=' '/usr/share/debian-edu-artwork/kde-profile/debian_edu_pupils'
+#        	cat >> $KIOSK_CONFIG_FILE << EOT
+#[Directories]
+#userProfileMapFile=/etc/kde-user-profile
+#
+#[Directories-debian_edu_pupils]
+#ProfileDescription=Debian-Edu Profile for pupils
+#prefixes=/usr/share/debian-edu-artwork/kde-profile/debian_edu_pupils
+#EOT
 	fi
+}
 
 case "$1" in
   configure)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-artwork.git



More information about the debian-edu-commits mailing list