initial commit of file from CVS for smeserver-webshare on Sat Sep 7 21:15:27 AEST 2024
This commit is contained in:
16
root/etc/e-smith/events/actions/webshare-delete
Executable file
16
root/etc/e-smith/events/actions/webshare-delete
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
my $projectName = $ARGV[0];
|
||||
|
||||
#------------------------------------------------------------
|
||||
# Delete the webshare project directory
|
||||
#------------------------------------------------------------
|
||||
|
||||
if ( -e "/opt/webshare/$projectName" ) {
|
||||
system("/bin/rm -Rf /opt/webshare/$projectName");
|
||||
system("/bin/rm -f /home/e-smith/db/webshare/htpasswd.$projectName");
|
||||
system("/sbin/e-smith/signal-event ibay-modify");
|
||||
}
|
||||
|
||||
exit(0);
|
||||
|
Reference in New Issue
Block a user