aboutsummaryrefslogtreecommitdiffstats
path: root/config/hooks
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-17 02:54:33 +0100
committerficus <ficus@robocracy.org>2012-11-17 02:54:33 +0100
commit522377caa2409ecf196e1ce98af1b2569a0bb53d (patch)
treeaac0a8b8688598f1ba79d4dd3a23e5e1d5e26a6b /config/hooks
parent6f5e3d051f59d617d27f284ad95a336f8a68bb57 (diff)
downloadtorouter-live-522377caa2409ecf196e1ce98af1b2569a0bb53d.tar.gz
torouter-live-522377caa2409ecf196e1ce98af1b2569a0bb53d.zip
remove transient files and include .gitignore
Diffstat (limited to 'config/hooks')
-rwxr-xr-xconfig/hooks/remove-packages.sh.chroot2
-rwxr-xr-xconfig/hooks/tor-usergroup.sh.chroot2
2 files changed, 4 insertions, 0 deletions
diff --git a/config/hooks/remove-packages.sh.chroot b/config/hooks/remove-packages.sh.chroot
index 10fa78b..76ca081 100755
--- a/config/hooks/remove-packages.sh.chroot
+++ b/config/hooks/remove-packages.sh.chroot
@@ -1,5 +1,7 @@
#!/bin/sh
+echo "Removing unwanted apt packages"
apt-get -f -y remove --purge polipo minissdpd
apt-get -y remove exim4-base exim4-config exim4-daemon-light dbus isc-dhcp-server
+apt-get autoremove
diff --git a/config/hooks/tor-usergroup.sh.chroot b/config/hooks/tor-usergroup.sh.chroot
index e46ad16..67ca241 100755
--- a/config/hooks/tor-usergroup.sh.chroot
+++ b/config/hooks/tor-usergroup.sh.chroot
@@ -1,5 +1,7 @@
#!/bin/sh
+echo "Creating tor user and groups"
+
export ADMINUSER="tor"
export ADMINGROUP="tor"
export TORADMINGROUP="debian-tor"