From 127b307d286fd851bebf2b067bc8645a6e22f04a Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 27 Apr 2011 19:31:37 -0700 Subject: Emails for creating and removing repos. --- pinyadmin/sbin/rmrepo | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'pinyadmin/sbin/rmrepo') diff --git a/pinyadmin/sbin/rmrepo b/pinyadmin/sbin/rmrepo index dff8fe5..acc9c56 100755 --- a/pinyadmin/sbin/rmrepo +++ b/pinyadmin/sbin/rmrepo @@ -7,6 +7,9 @@ use Piny; my $env = Piny::Environment->instance( ); +my $config = Piny::Config->new( ); +my $dest = $config->piny_newuseremail; + foreach my $reponame ( @ARGV ) { my $repo = Piny::Repo->new( $reponame ); @@ -16,6 +19,18 @@ foreach my $reponame ( @ARGV ) { exit 1; }; + unless( open( MAIL, "|/usr/lib/sendmail -t" ) ) { + die "Couldn't execute sendmail: $!\n"; + }; + print MAIL <destroy; }; -- cgit v1.2.3