forked from BunsenLabs/bunsen-netinstall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostinstall_commands
30 lines (25 loc) · 1.14 KB
/
postinstall_commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# commands to run after installing all files and packages
# add any needed extra groups
for i in #cbnetwork
do
if grep -q "^${i}:" /etc/group
then
msg "group $i already exists"
else
msg "adding group $i"
sudo addgroup $i || errmsg "failed to add group: $i"
fi
done
# add user to necessary extra groups
# NB You should also check sysfiles2/etc/adduser.conf for default groups to add new users to
for i in netdev #scanner #bluetooth #fuse #cbnetwork
do
sudo adduser $user $i || errmsg "failed to add user: $user to group: $i"
done
# make sure gksu runs in sudo mode
#sudo update-alternatives --set libgksu-gconf-defaults /usr/share/libgksu/debian/gconf-defaults.libgksu-sudo || errmsg "failed to edit alternative for libgksu-gconf-defaults"
#sudo update-gconf-defaults || errmsg "failed to update gconf defaults"
# set cursor theme to pre-empt Adwaita
sudo update-alternatives --set x-cursor-theme /usr/share/icons/DMZ-White/cursor.theme || errmsg "failed to edit alternative for x-cursor-theme"
# Add install date to /etc/bunsen/bunsen_install
echo "Install date: $(date --utc +%FT%T)" >> /etc/bunsen/bunsen_install