summaryrefslogtreecommitdiff
path: root/install-itzks-workstation-user-and-partitions-only
blob: 4d8bc2f7d613e011ae09ccedfffceddf46b55b9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# script for installing a Debian Edu Workstation with ITZkS modifications

set -e

# Add user locadm if not already there
if [ -z $"(getent passwd locadm)" ]; then
	adduser --gecos "Local Administrator" locadm
	adduser locadm sudo
fi

# Enlarge root-fs

if [ -e /dev/vg_system/usr ]; then
	lvextend -L 18G /dev/vg_system/usr
	resize2fs /dev/vg_system/usr
else
	lvextend -L 22G /dev/vg_system/root
	resize2fs /dev/vg_system/root
fi

# Retrieve LDAP CA certificate
invoke-rc.d fetch-ldap-cert start