diff options
author | ficus <ficus@robocracy.org> | 2012-11-19 17:50:17 +0100 |
---|---|---|
committer | ficus <ficus@robocracy.org> | 2012-11-19 17:50:17 +0100 |
commit | 337071e30fdf50270748e93ab7b6152530d3d3c2 (patch) | |
tree | 929b9e97427a5570f3446adeb49f0ac2ef16767c /config/hooks | |
parent | 3c45f0b8149f2970d65069cd5ea96d15aa8f0356 (diff) | |
download | torouter-live-337071e30fdf50270748e93ab7b6152530d3d3c2.tar.gz torouter-live-337071e30fdf50270748e93ab7b6152530d3d3c2.zip |
debugging user creation problem
Diffstat (limited to 'config/hooks')
-rwxr-xr-x | config/hooks/kernel-image.sh.chroot | 5 | ||||
-rwxr-xr-x | config/hooks/remove-packages.sh.chroot | 6 | ||||
-rwxr-xr-x | config/hooks/tor-usergroup.sh.chroot | 17 |
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/* - |