use new hostnames, sudo instead of su, etc.
fs checkvolumes
# Remove user from all of our mailing lists
-echo $USER@hcoop.net | ssh -K deleuze sudo -u list \
+echo $USER@hcoop.net | ssh -K mccarthy sudo -u list \
/var/lib/mailman/bin/remove_members --fromall -f -
exec >& /var/log/backup-to-rsync-wrapper-log
touch /xyz/zys # generate an error message
-#exit 1 # temporary until disk space issues are solved
+exit 1 # temporary because deleuze's disks will barf if we run this
fs checkvol
LOG=/var/log/backup-to-rsync-log
#!/bin/bash -e
#
-# Make a new mailing list. Run as root on deleuze.
+# Make a new mailing list. Run as user in sudoers on mccarthy.
#
# Usage: listnew LISTNAME LISTDOMAIN LISTURL USER INITIAL_PASSWORD
# Iterate through available lists
for i in $(find $LISTDIR -mindepth 1 -maxdepth 1 -type d -print); do
LIST=$(basename $i)
- DOMAIN=$(su list -c "$BINDIR/config_list -o - $LIST" | \
+ DOMAIN=$(sudo -u list $BINDIR/config_list -o - $LIST | \
grep -E "^host_name = '.+'" 2>/dev/null | \
sed -r -e "s/host_name = '(.+)'/\\1/")
if test -n "$LIST" && test -n "$DOMAIN"; then
do \
echo re-creating `basename $A`
(echo $A | grep _admin) || \
- /afs/hcoop.net/common/etc/scripts/create-user `basename $A` || exit -1
-done
\ No newline at end of file
+ /afs/hcoop.net/common/etc/scripts/create-user-new `basename $A` || exit -1
+done