aboutsummaryrefslogtreecommitdiff
path: root/fai/config/scripts/ROAMING_WORKSTATION/10-update-debian-edu-config
blob: 86b8446e267283a37f693294267f69a50e02b564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# tag Debian Edu machine as a roaming workstation
if [ -f $target/etc/debian-edu/config ]; then

	# FIXME: we already do this in hooks/instsoft.ROAMING_WORKSTATION... (really required here again?)
	sed -i $target/etc/debian-edu/config -e "s/^PROFILE=.*$/PROFILE=\"Roaming-Workstation\"/"

	# reconfigure debian-edu-install to get desktop profiles right
	export DEBIAN_FRONTEND=noninteractive
	chroot $target dpkg-reconfigure debian-edu-install
	unset DEBIAN_FRONTEND
fi