hcoop/scripts.git
15 years agoMake sure that listnew is run as root.
mwolson_admin [Tue, 6 May 2008 14:26:58 +0000 (10:26 -0400)]
Make sure that listnew is run as root.

16 years agoca-sign: Various improvements.
mwolson_admin [Mon, 7 Apr 2008 00:57:13 +0000 (20:57 -0400)]
ca-sign: Various improvements.

16 years agoca-sign: Verify cert request before acting on it.
mwolson_admin [Tue, 1 Apr 2008 06:44:35 +0000 (02:44 -0400)]
ca-sign: Verify cert request before acting on it.

16 years agoca-install: Mention that validation is done.
mwolson_admin [Tue, 1 Apr 2008 05:34:05 +0000 (01:34 -0400)]
ca-install: Mention that validation is done.

16 years agoca-sign: Add usage statement and more thorough param-checking
mwolson_admin [Tue, 1 Apr 2008 05:10:49 +0000 (01:10 -0400)]
ca-sign: Add usage statement and more thorough param-checking

16 years agoca-install: Add verification of cert and overhaul
mwolson_admin [Tue, 1 Apr 2008 05:08:42 +0000 (01:08 -0400)]
ca-install: Add verification of cert and overhaul

16 years agohcoop-clean-tmp: New script to clean /tmp.
mwolson_admin [Mon, 31 Mar 2008 01:27:58 +0000 (21:27 -0400)]
hcoop-clean-tmp: New script to clean /tmp.

16 years agomake-account-for-fyodor-user: Professionalize
mwolson_admin [Mon, 31 Mar 2008 01:25:54 +0000 (21:25 -0400)]
make-account-for-fyodor-user: Professionalize

16 years agocreate-user: Move vos release common.databases later
mwolson_admin [Mon, 31 Mar 2008 01:24:42 +0000 (21:24 -0400)]
create-user: Move vos release common.databases later

16 years agochange-user-password: Disable debug output
mwolson_admin [Mon, 31 Mar 2008 01:23:47 +0000 (21:23 -0400)]
change-user-password: Disable debug output

16 years agoMerge branch 'master' of ssh://mire.hcoop.net/home/mwolson_admin/hcoop-git/misc
mwolson_admin [Thu, 13 Mar 2008 01:59:05 +0000 (21:59 -0400)]
Merge branch 'master' of ssh://mire.hcoop.net/home/mwolson_admin/hcoop-git/misc

16 years agoapache-sync-logs: Use sudo rather than su to protect against user .bashrc.
mwolson_admin [Thu, 13 Mar 2008 01:56:16 +0000 (21:56 -0400)]
apache-sync-logs: Use sudo rather than su to protect against user .bashrc.

16 years agoapache-sync-logs: Don't email admins if user removes their log dir.
mwolson_admin [Thu, 13 Mar 2008 01:55:15 +0000 (21:55 -0400)]
apache-sync-logs: Don't email admins if user removes their log dir.

16 years agohcoop-backup: Make deletion of old backups work.
mwolson_admin [Sun, 17 Feb 2008 23:52:30 +0000 (18:52 -0500)]
hcoop-backup: Make deletion of old backups work.

16 years agocreate-user: Mention wiki.hcoop.net instead of wiki2.hcoop.net.
mwolson_admin [Fri, 15 Feb 2008 05:29:18 +0000 (00:29 -0500)]
create-user: Mention wiki.hcoop.net instead of wiki2.hcoop.net.

16 years agodestroy-user: Handle missing param, fix /old/ removal
mwolson_admin [Fri, 15 Feb 2008 00:51:08 +0000 (19:51 -0500)]
destroy-user: Handle missing param, fix /old/ removal

16 years agohcoop-backup: Delete backups older than 10 days.
mwolson_admin [Tue, 12 Feb 2008 14:16:44 +0000 (09:16 -0500)]
hcoop-backup: Delete backups older than 10 days.

16 years agohcoop-backup: Ignore another annoying file
mwolson_admin [Tue, 12 Feb 2008 14:09:22 +0000 (09:09 -0500)]
hcoop-backup: Ignore another annoying file

16 years agohcoop-backup: Throttle at 2.6Mbps.
mwolson_admin [Sat, 9 Feb 2008 05:12:09 +0000 (00:12 -0500)]
hcoop-backup: Throttle at 2.6Mbps.

16 years agohcoop-backup: Tidy up some UUOC.
mwolson_admin [Sat, 9 Feb 2008 05:08:41 +0000 (00:08 -0500)]
hcoop-backup: Tidy up some UUOC.

16 years agohcoop-backup: Fix deletion to only cover old directories, not files.
mwolson_admin [Sun, 3 Feb 2008 06:38:12 +0000 (01:38 -0500)]
hcoop-backup: Fix deletion to only cover old directories, not files.

16 years agohcoop-backup: Overhaul for bandwidth limiting.
mwolson_admin [Sat, 2 Feb 2008 19:20:31 +0000 (14:20 -0500)]
hcoop-backup: Overhaul for bandwidth limiting.

* scripts/hcoop-backup: (BWLIMIT): New var indicating KB/s bandwidth
  limiting to enforce.
  (BACKUPTMP): Place backups here individually on local disk before
  transferring offsite.  Make this the current directory rather than the
  offsite AFS directory.
  (copy_over): New convenience function that copies a file from the local
  backup location to the offsite location, removing the original.
  (complain): Make complaint email come from "The Backup Program".

16 years agohcoop-backup: Back up spamd directory specially.
mwolson_admin [Mon, 28 Jan 2008 07:24:48 +0000 (02:24 -0500)]
hcoop-backup: Back up spamd directory specially.

16 years agoTry not backing up spamd data, in case that pushes us over the edge.
mwolson_admin [Sun, 27 Jan 2008 06:52:48 +0000 (01:52 -0500)]
Try not backing up spamd data, in case that pushes us over the edge.

16 years agoKeep two days of backups (change by megacz)
mwolson_admin [Sun, 27 Jan 2008 06:50:51 +0000 (01:50 -0500)]
Keep two days of backups (change by megacz)

16 years agohcoop-backup: Deal with /usr/bin/*.notslocate files.
mwolson_admin [Tue, 15 Jan 2008 00:05:28 +0000 (19:05 -0500)]
hcoop-backup: Deal with /usr/bin/*.notslocate files.

16 years agoSync hcoop-backup changes from megacz
mwolson_admin [Mon, 14 Jan 2008 22:01:59 +0000 (17:01 -0500)]
Sync hcoop-backup changes from megacz

16 years agohcoop-backup: Sync changes from megacz, add IFS lines
mwolson_admin [Thu, 27 Dec 2007 04:16:21 +0000 (23:16 -0500)]
hcoop-backup: Sync changes from megacz, add IFS lines

This should fix the weird "1.png" entries in the email that the script
sends out.

16 years agoapache-sync-logs: Skip people who have unreadable log subdirectories.
mwolson_admin [Tue, 18 Dec 2007 21:31:42 +0000 (16:31 -0500)]
apache-sync-logs: Skip people who have unreadable log subdirectories.

16 years agoapache-sync-logs: Skip people who do not have keytabs
mwolson_admin [Tue, 18 Dec 2007 18:56:04 +0000 (13:56 -0500)]
apache-sync-logs: Skip people who do not have keytabs

16 years agocreate-user: Make .domtool symlink with correct ownership
mwolson_admin [Wed, 12 Dec 2007 17:24:56 +0000 (12:24 -0500)]
create-user: Make .domtool symlink with correct ownership

Apparently, it is not possible to change the ownership of a symlink that
is in AFS.  Presumably, that information is not paid attention to.  It
might just be for cosmetics that we do this.

I'm leaving the existing symlinks in user directories alone, because I'd
basically have to remove the symlink and make a new one, and I'd rather
not disrupt service.

16 years agonew-user: Expand ~$USERNM correctly
mwolson_admin [Wed, 12 Dec 2007 17:19:09 +0000 (12:19 -0500)]
new-user: Expand ~$USERNM correctly

16 years agonew-user: chown the .forward file after creating it.
mwolson_admin [Wed, 12 Dec 2007 06:37:08 +0000 (01:37 -0500)]
new-user: chown the .forward file after creating it.

Otherwise, Exim will refuse to recognize it.

16 years agoSync new-user fix from common area
mwolson_admin [Wed, 12 Dec 2007 06:30:58 +0000 (01:30 -0500)]
Sync new-user fix from common area

16 years agocreate-user: Own .domtool symlink, and own Maildir/(cur,new,tmp)
mwolson_admin [Sun, 9 Dec 2007 01:01:37 +0000 (20:01 -0500)]
create-user: Own .domtool symlink, and own Maildir/(cur,new,tmp)

16 years agocreate-user: Send nice introductory email, remove commented-out cruft
mwolson_admin [Sun, 9 Dec 2007 00:38:05 +0000 (19:38 -0500)]
create-user: Send nice introductory email, remove commented-out cruft

16 years agolistnew: Check arguments, handle new list_url argument, name parameters, add usage
mwolson_admin [Sat, 8 Dec 2007 23:27:08 +0000 (18:27 -0500)]
listnew: Check arguments, handle new list_url argument, name parameters, add usage

16 years agomailman-update-exim-db: Allow extras file and permit multiple domains per listname
mwolson_admin [Sat, 8 Dec 2007 06:14:15 +0000 (01:14 -0500)]
mailman-update-exim-db: Allow extras file and permit multiple domains per listname

16 years agoWhen making a new list, set web interface to be https://lists.hcoop.net by default.
mwolson_admin [Tue, 4 Dec 2007 01:54:15 +0000 (20:54 -0500)]
When making a new list, set web interface to be https://lists.hcoop.net by default.

16 years agoImplement adding and removing of members from mailing lists
mwolson_admin [Mon, 3 Dec 2007 02:02:01 +0000 (21:02 -0500)]
Implement adding and removing of members from mailing lists

16 years agoAdd docelic's new-user script
mwolson_admin [Mon, 3 Dec 2007 01:46:03 +0000 (20:46 -0500)]
Add docelic's new-user script

16 years agoUpdate mailman defs right away in listnew
mwolson_admin [Thu, 29 Nov 2007 21:50:09 +0000 (16:50 -0500)]
Update mailman defs right away in listnew

16 years agoAdd listnew script
mwolson_admin [Thu, 29 Nov 2007 21:40:28 +0000 (16:40 -0500)]
Add listnew script

16 years agoca-sign: Tell clients using our CA cert to update CRL every 30 days
mwolson_admin [Tue, 20 Nov 2007 21:37:12 +0000 (16:37 -0500)]
ca-sign: Tell clients using our CA cert to update CRL every 30 days

16 years agoapache-sync-logs: Skip empty source directories
mwolson_admin [Mon, 19 Nov 2007 02:21:11 +0000 (21:21 -0500)]
apache-sync-logs: Skip empty source directories

16 years agoNo need to back up .rand files in /usr/lib/courier/
mwolson_admin [Sun, 18 Nov 2007 17:15:01 +0000 (12:15 -0500)]
No need to back up .rand files in /usr/lib/courier/

16 years agoca-install, ca-sign: New scripts to sign and install user certs
mwolson_admin [Sun, 18 Nov 2007 01:03:09 +0000 (20:03 -0500)]
ca-install, ca-sign: New scripts to sign and install user certs

16 years agohcoop-backup: deal with perldoc.stub
mwolson_admin [Thu, 15 Nov 2007 14:22:57 +0000 (09:22 -0500)]
hcoop-backup: deal with perldoc.stub

 - Don't back up perldoc.stub
 - Match period in ,pyc and .elc files
 - Escape period in .modutils

16 years agomailman-update-exim-db: Fix typo, mention that it has to run as root
mwolson_admin [Thu, 15 Nov 2007 00:23:42 +0000 (19:23 -0500)]
mailman-update-exim-db: Fix typo, mention that it has to run as root

16 years agomailman-update-exim-db: New script that builds a Mailman lookup table for Exim
mwolson_admin [Wed, 14 Nov 2007 22:46:33 +0000 (17:46 -0500)]
mailman-update-exim-db: New script that builds a Mailman lookup table for Exim

16 years agoMake bin directory for user-executable stuff
mwolson_admin [Wed, 14 Nov 2007 22:19:07 +0000 (17:19 -0500)]
Make bin directory for user-executable stuff

Move run-in-pagsh there, and add frak and fsr

16 years agorun-in-pagsh: Figure out what user we're running as
mwolson_admin [Wed, 14 Nov 2007 03:38:56 +0000 (22:38 -0500)]
run-in-pagsh: Figure out what user we're running as

Cron can be stupid sometimes and set LOGNAME, but not USER.

16 years agorun-in-pagsh improvements
mwolson_admin [Tue, 13 Nov 2007 23:11:40 +0000 (18:11 -0500)]
run-in-pagsh improvements

 - Take --fg argument, which tells run-in-pagsh that we are running the
   command in the foreground, and should clean up k5start's PID file.
 - Send kill errors to /dev/null.

16 years agoFix gitweb stuff: needed sudo in front
mwolson_admin [Mon, 5 Nov 2007 21:00:53 +0000 (16:00 -0500)]
Fix gitweb stuff: needed sudo in front

16 years agocvsimport
mwolson_admin [Mon, 5 Nov 2007 20:56:32 +0000 (15:56 -0500)]
cvsimport

Conflicts:

scripts/create-user

16 years agorevert commands that are choking
megacz [Mon, 29 Oct 2007 06:09:12 +0000 (06:09 +0000)]
revert commands that are choking

16 years agorun-in-pagsh: Use $HOME rather than "~" so that paths can be quoted
bigmike160 [Mon, 29 Oct 2007 02:22:11 +0000 (02:22 +0000)]
run-in-pagsh: Use $HOME rather than "~" so that paths can be quoted

Otherwise, several utilities like rm and test can't resolve "~" properly.
Sigh.

16 years agorun-in-pagsh: Use $HOME rather than "~" so that paths can be quoted
mwolson_admin [Mon, 29 Oct 2007 02:21:41 +0000 (22:21 -0400)]
run-in-pagsh: Use $HOME rather than "~" so that paths can be quoted

Otherwise, several utilities like rm and test can't resolve "~" properly.
Sigh.

16 years agoapache-sync-logs: Really fix permissions issues this time
bigmike160 [Sun, 28 Oct 2007 23:49:49 +0000 (23:49 +0000)]
apache-sync-logs: Really fix permissions issues this time

16 years agoapache-sync-logs: Really fix permissions issues this time
mwolson_admin [Sun, 28 Oct 2007 23:42:34 +0000 (19:42 -0400)]
apache-sync-logs: Really fix permissions issues this time

16 years agorun-in-pagsh: Add /usr/bin/ prefix for consistency
bigmike160 [Sun, 28 Oct 2007 23:10:40 +0000 (23:10 +0000)]
run-in-pagsh: Add /usr/bin/ prefix for consistency

16 years agorun-in-pagsh: Add /usr/bin/ prefix for consistency
mwolson_admin [Sun, 28 Oct 2007 23:10:14 +0000 (19:10 -0400)]
run-in-pagsh: Add /usr/bin/ prefix for consistency

16 years agorun-in-pagsh: misc improvements
bigmike160 [Sun, 28 Oct 2007 23:02:22 +0000 (23:02 +0000)]
run-in-pagsh: misc improvements

 - Run rm command in k5start.

 - Instead of using environment variable NAME, just make it the first
   argument to the script.

 - Add Emacs hint for fontifying this as a shell script.

16 years agorun-in-pagsh: misc improvements
mwolson_admin [Sun, 28 Oct 2007 23:01:55 +0000 (19:01 -0400)]
run-in-pagsh: misc improvements

 - Run rm command in k5start.

 - Instead of using environment variable NAME, just make it the first
   argument to the script.

 - Add Emacs hint for fontifying this as a shell script.

16 years agorun-in-pagsh: New script to run something in a PAG
bigmike160 [Sun, 28 Oct 2007 22:45:00 +0000 (22:45 +0000)]
run-in-pagsh: New script to run something in a PAG

16 years agoMerge branch 'master' of ssh://mire.hcoop.net/home/mwolson_admin/hcoop-git/misc
mwolson_admin [Sun, 28 Oct 2007 22:42:53 +0000 (18:42 -0400)]
Merge branch 'master' of ssh://mire.hcoop.net/home/mwolson_admin/hcoop-git/misc

16 years agorun-in-pagsh: New script to run something in a PAG
mwolson_admin [Sun, 28 Oct 2007 22:42:17 +0000 (18:42 -0400)]
run-in-pagsh: New script to run something in a PAG

16 years agocreate-user: Add symlink for gitweb hosting
bigmike160 [Sun, 28 Oct 2007 20:49:47 +0000 (20:49 +0000)]
create-user: Add symlink for gitweb hosting

16 years agocreate-user: Add symlink for gitweb hosting
mwolson_admin [Sun, 28 Oct 2007 20:49:16 +0000 (16:49 -0400)]
create-user: Add symlink for gitweb hosting

16 years agoapache-sync-logs: Work around strangeness with nocelic and magnus users
bigmike160 [Sun, 28 Oct 2007 20:26:18 +0000 (20:26 +0000)]
apache-sync-logs: Work around strangeness with nocelic and magnus users

16 years agoMerge branch 'master' of ssh://mire.hcoop.net/home/mwolson_admin/hcoop-git/misc
mwolson_admin [Sun, 28 Oct 2007 20:24:24 +0000 (16:24 -0400)]
Merge branch 'master' of ssh://mire.hcoop.net/home/mwolson_admin/hcoop-git/misc

16 years agoapache-sync-logs: Work around strangeness with nocelic and magnus users
mwolson_admin [Sun, 28 Oct 2007 20:20:29 +0000 (16:20 -0400)]
apache-sync-logs: Work around strangeness with nocelic and magnus users

16 years agorevert
megacz [Tue, 23 Oct 2007 16:43:29 +0000 (16:43 +0000)]
revert

16 years agohcoop-backup: Backup ikiwiki plugins, ignore /usr/lib/graphviz
bigmike160 [Tue, 23 Oct 2007 13:03:38 +0000 (13:03 +0000)]
hcoop-backup: Backup ikiwiki plugins, ignore /usr/lib/graphviz

16 years agohcoop-backup: Backup ikiwiki plugins, ignore /usr/lib/graphviz
mwolson_admin [Tue, 23 Oct 2007 13:02:56 +0000 (09:02 -0400)]
hcoop-backup: Backup ikiwiki plugins, ignore /usr/lib/graphviz

16 years agocreate-user: Comment out the extra checks for shared spam dirs
bigmike160 [Tue, 23 Oct 2007 00:04:31 +0000 (00:04 +0000)]
create-user: Comment out the extra checks for shared spam dirs

They really aren't needed after all -- Courier automatically creates
new ones anyway, provided the info in shared-maildirs is correct.

16 years agoMerge from CVS: create-user: use pagsh in commented-out example
mwolson_admin [Mon, 22 Oct 2007 14:34:43 +0000 (10:34 -0400)]
Merge from CVS: create-user: use pagsh in commented-out example

16 years agoDocument requirements to run domtool-adduser
adamch [Sun, 21 Oct 2007 15:01:22 +0000 (15:01 +0000)]
Document requirements to run domtool-adduser

16 years agosend mail from within a pagsh so tokens are not lost
megacz [Sun, 21 Oct 2007 06:32:33 +0000 (06:32 +0000)]
send mail from within a pagsh so tokens are not lost

16 years agouncomment troublesome stuff in create-user
megacz [Sun, 21 Oct 2007 06:32:08 +0000 (06:32 +0000)]
uncomment troublesome stuff in create-user

16 years agoredeliver-mail: Make more safe, so we never overwrite in-progress messages
bigmike160 [Sat, 20 Oct 2007 16:44:49 +0000 (16:44 +0000)]
redeliver-mail: Make more safe, so we never overwrite in-progress messages

16 years agoredeliver-mail: Make more safe, so we never overwrite in-progress messages
mwolson_admin [Sat, 20 Oct 2007 16:43:51 +0000 (12:43 -0400)]
redeliver-mail: Make more safe, so we never overwrite in-progress messages

16 years agoapache-sync-logs: Put logs in ~USER/.logs
mwolson_admin [Fri, 19 Oct 2007 19:03:29 +0000 (15:03 -0400)]
apache-sync-logs: Put logs in ~USER/.logs

16 years agoredeliver-mail: new script to redeliver all mail in /var/mail
bigmike160 [Fri, 19 Oct 2007 18:55:42 +0000 (18:55 +0000)]
redeliver-mail: new script to redeliver all mail in /var/mail

16 years agocreate-user: comment-out unnecessary and trouble-causing shared-folders stuff
bigmike160 [Fri, 19 Oct 2007 18:55:11 +0000 (18:55 +0000)]
create-user: comment-out unnecessary and trouble-causing shared-folders stuff

16 years agoredeliver-mail: new script to redeliver all mail in /var/mail
mwolson_admin [Fri, 19 Oct 2007 18:27:44 +0000 (14:27 -0400)]
redeliver-mail: new script to redeliver all mail in /var/mail

16 years agocreate-user: comment-out unnecessary and trouble-causing shared-folders stuff
mwolson_admin [Thu, 18 Oct 2007 03:44:05 +0000 (23:44 -0400)]
create-user: comment-out unnecessary and trouble-causing shared-folders stuff

16 years agohcoop-backup: Take care of some files that don't need to be backed up
bigmike160 [Sat, 13 Oct 2007 14:50:20 +0000 (14:50 +0000)]
hcoop-backup: Take care of some files that don't need to be backed up

 - Escape a couple or periods
 - Move /usr/lib/locale/locale-archive to the not-backed-up part
 - Add gconv and vim cruft to the not-backed-up part

16 years agohcoop-backup: Take care of some files that don't need to be backed up
mwolson_admin [Sat, 13 Oct 2007 14:43:57 +0000 (10:43 -0400)]
hcoop-backup: Take care of some files that don't need to be backed up

 - Escape a couple or periods
 - Move /usr/lib/locale/locale-archive to the not-backed-up part
 - Add gconv and vim cruft to the not-backed-up part

16 years agoimprove change-user-password script
megacz [Tue, 9 Oct 2007 19:56:47 +0000 (19:56 +0000)]
improve change-user-password script

16 years agocatsync support
megacz [Tue, 9 Oct 2007 19:55:32 +0000 (19:55 +0000)]
catsync support

16 years agocreate-user: Run domtool-adduser
bigmike160 [Tue, 9 Oct 2007 03:50:23 +0000 (03:50 +0000)]
create-user: Run domtool-adduser

16 years agocreate-user: Make ~/.logs directory for everyone and a mail/ subdir
bigmike160 [Tue, 9 Oct 2007 03:25:31 +0000 (03:25 +0000)]
create-user: Make ~/.logs directory for everyone and a mail/ subdir

16 years agocreate-user: Add sanity check in case shared spam dir is really FUBAR
bigmike160 [Tue, 9 Oct 2007 03:14:51 +0000 (03:14 +0000)]
create-user: Add sanity check in case shared spam dir is really FUBAR

Also, change sole use of "[ ... ]" to "test".

16 years agocreate-user: Set up shared SpamAssassin directory for everyone
bigmike160 [Tue, 9 Oct 2007 02:58:00 +0000 (02:58 +0000)]
create-user: Set up shared SpamAssassin directory for everyone

16 years agocreate-user: Make DAV lock directories on both mire and deleuze
bigmike160 [Tue, 9 Oct 2007 01:07:41 +0000 (01:07 +0000)]
create-user: Make DAV lock directories on both mire and deleuze

Also, add new convenience function mire_and_deleuze.

16 years agodestroy-user: Add call to domtool-rmuser
bigmike160 [Mon, 8 Oct 2007 05:48:05 +0000 (05:48 +0000)]
destroy-user: Add call to domtool-rmuser

16 years agocreate-user: If $HOMEPATH is a symlink, don't run fs mkm on it
bigmike160 [Mon, 8 Oct 2007 03:11:26 +0000 (03:11 +0000)]
create-user: If $HOMEPATH is a symlink, don't run fs mkm on it

16 years agocreate-user: call chown after fs mkm, not before
bigmike160 [Mon, 8 Oct 2007 03:04:53 +0000 (03:04 +0000)]
create-user: call chown after fs mkm, not before

16 years agocreate-user: Make apache happy w.r.t. DAV lock directory
bigmike160 [Mon, 8 Oct 2007 02:53:18 +0000 (02:53 +0000)]
create-user: Make apache happy w.r.t. DAV lock directory