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/newrepo | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'pinyadmin/sbin/newrepo') diff --git a/pinyadmin/sbin/newrepo b/pinyadmin/sbin/newrepo index 5df6ee5..a63d96a 100755 --- a/pinyadmin/sbin/newrepo +++ b/pinyadmin/sbin/newrepo @@ -44,6 +44,23 @@ while( 1 ) { }; +my $config = Piny::Config->new( ); +my $dest = $config->piny_newuseremail; + +unless( open( MAIL, "|/usr/lib/sendmail -t" ) ) { + die "Couldn't execute sendmail: $!\n"; +}; +print MAIL <create( $name, $description ); print "Repo URL: " . $repo->ikiwiki_url . "\n"; -- cgit v1.2.3