Sync changes in current working tree
[clinton/scripts.git] / change-user-password
index f313f8b..b011c1f 100755 (executable)
@@ -1,4 +1,6 @@
-#!/bin/bash -ex
+#!/bin/bash -e
+
+# disable debug !/bin/bash -ex
 #
 # Finally, set password for main user's principal
 # Aborting this operation is harmless. Just re-invoke cpw.
 #
 # Finally, set password for main user's principal
 # Aborting this operation is harmless. Just re-invoke cpw.
@@ -13,7 +15,7 @@ sudo kadmin.local -p root/admin -q "cpw $USER@HCOOP.NET" \
 cat /tmp/kadmin.out | grep '\(is too short while changing\|does not contain enough\)' && \
      (echo == sending complaint to $USER@hcoop.net ====================================================;\
       echo 'please change it' |\
 cat /tmp/kadmin.out | grep '\(is too short while changing\|does not contain enough\)' && \
      (echo == sending complaint to $USER@hcoop.net ====================================================;\
       echo 'please change it' |\
-        mail -a 'From: Adam Megacz <megacz@hcoop.net>' \
+        mail -a 'From: HCoop Admins <admins@hcoop.net>' \
              -c admins@hcoop.net \
              -s "your ~/.mire-password is too short or not complex enough" $USER@hcoop.net) || \
       true
              -c admins@hcoop.net \
              -s "your ~/.mire-password is too short or not complex enough" $USER@hcoop.net) || \
       true