aboutsummaryrefslogtreecommitdiffstats
path: root/config/hooks
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-19 17:50:17 +0100
committerficus <ficus@robocracy.org>2012-11-19 17:50:17 +0100
commit337071e30fdf50270748e93ab7b6152530d3d3c2 (patch)
tree929b9e97427a5570f3446adeb49f0ac2ef16767c /config/hooks
parent3c45f0b8149f2970d65069cd5ea96d15aa8f0356 (diff)
downloadtorouter-live-337071e30fdf50270748e93ab7b6152530d3d3c2.tar.gz
torouter-live-337071e30fdf50270748e93ab7b6152530d3d3c2.zip
debugging user creation problem
Diffstat (limited to 'config/hooks')
-rwxr-xr-xconfig/hooks/kernel-image.sh.chroot5
-rwxr-xr-xconfig/hooks/remove-packages.sh.chroot6
-rwxr-xr-xconfig/hooks/tor-usergroup.sh.chroot17
3 files changed, 3 insertions, 25 deletions
diff --git a/config/hooks/kernel-image.sh.chroot b/config/hooks/kernel-image.sh.chroot
index 2c15971..31dbaf1 100755
--- a/config/hooks/kernel-image.sh.chroot
+++ b/config/hooks/kernel-image.sh.chroot
@@ -3,9 +3,10 @@
set -e
# TODO: this seems to be a null-op... flash-kernel is symlinked to `true`?
-echo "Trying to flashing kernel..."
+# XXX: remove this
+#echo "Trying to flashing kernel..."
#/usr/sbin/flash-kernel || echo "Failed to flash kernel! Don't worry, will mangle"
-/usr/sbin/flash-kernel
+#/usr/sbin/flash-kernel
echo "Mangling kernel..."
mkdir /tmp/initrd-repack
diff --git a/config/hooks/remove-packages.sh.chroot b/config/hooks/remove-packages.sh.chroot
deleted file mode 100755
index 0f46ef6..0000000
--- a/config/hooks/remove-packages.sh.chroot
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/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
-
diff --git a/config/hooks/tor-usergroup.sh.chroot b/config/hooks/tor-usergroup.sh.chroot
deleted file mode 100755
index 67ca241..0000000
--- a/config/hooks/tor-usergroup.sh.chroot
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-echo "Creating tor user and groups"
-
-export ADMINUSER="tor"
-export ADMINGROUP="tor"
-export TORADMINGROUP="debian-tor"
-
-# add users and groups (ignore failures if groups already exist)
-addgroup $ADMINGROUP
-useradd -g $ADMINGROUP -G $TORADMINGROUP -s /bin/bash $ADMINUSER
-# TODO: $ADMINUSER passwd?
-
-# give Tor permission to modify it's own configuration
-chgrp $TORADMINGROUP /etc/tor/ /etc/tor/*
-chmod g+rw /etc/tor/ /etc/tor/*
-