Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
c02dc6a3
Commit
c02dc6a3
authored
Aug 18, 2004
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have wideareakeys.php3 call deletenode instead of trying to delete
nodes itself.
parent
dbf96a2a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
12 deletions
+30
-12
configure
configure
+1
-1
configure.in
configure.in
+1
-1
utils/GNUmakefile.in
utils/GNUmakefile.in
+1
-1
utils/webdeletenode.in
utils/webdeletenode.in
+25
-0
www/wideareakeys.php3
www/wideareakeys.php3
+2
-9
No files found.
configure
View file @
c02dc6a3
...
...
@@ -1488,7 +1488,7 @@ outfiles="$outfiles Makeconf GNUmakefile \
utils/cvsupd.pl utils/newnode utils/grantnodetype
\
utils/nsgen/GNUmakefile utils/nsgen/webnsgen
\
utils/link_config utils/import_commitlog utils/dhcpd_wrapper
\
utils/opsreboot utils/deletenode
\
utils/opsreboot utils/deletenode
utils/webdeletenode
\
www/GNUmakefile www/defs.php3 www/dbdefs.php3
\
www/swish.conf www/websearch
\
vis/GNUmakefile vis/webvistopology vis/dbvistopology
\
...
...
configure.in
View file @
c02dc6a3
...
...
@@ -527,7 +527,7 @@ outfiles="$outfiles Makeconf GNUmakefile \
utils/cvsupd.pl utils/newnode utils/grantnodetype \
utils/nsgen/GNUmakefile utils/nsgen/webnsgen \
utils/link_config utils/import_commitlog utils/dhcpd_wrapper \
utils/opsreboot utils/deletenode \
utils/opsreboot utils/deletenode
utils/webdeletenode
\
www/GNUmakefile www/defs.php3 www/dbdefs.php3 \
www/swish.conf www/websearch \
vis/GNUmakefile vis/webvistopology vis/dbvistopology \
...
...
utils/GNUmakefile.in
View file @
c02dc6a3
...
...
@@ -18,7 +18,7 @@ BIN_SCRIPTS = delay_config sshtb create_image node_admin link_config
SBIN_SCRIPTS = vlandiff vlansync withadminprivs export_tables cvsupd.pl \
eventping grantnodetype import_commitlog dhcpd_wrapper \
opsreboot deletenode
LIBEXEC_SCRIPTS = webcreateimage newnode
LIBEXEC_SCRIPTS = webcreateimage newnode
webdeletenode
#
# Force dependencies on the scripts so that they will be rerun through
...
...
utils/webdeletenode.in
0 → 100644
View file @
c02dc6a3
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004 University of Utah and the Flux Group.
# All rights reserved.
#
use
English
;
#
# This gets invoked from the Web interface. Simply a wrapper ...
#
#
# Configure variables
#
my
$TB
=
"
@prefix
@
";
#
# Run the real thing, and never return.
#
exec
"
$TB
/sbin/deletenode
",
@ARGV
;
die
("
webdeletenode: Could not exec deletenode: $!
");
www/wideareakeys.php3
View file @
c02dc6a3
...
...
@@ -95,15 +95,8 @@ if (isset($deletekey)) {
DBQueryFatal
(
"delete from widearea_privkeys where privkey='
$deletekey
'"
);
if
(
isset
(
$nodeid
)
&&
$nodeid
)
{
DBQueryFatal
(
"delete from widearea_nodeinfo where node_id='
$nodeid
'"
);
DBQueryFatal
(
"delete from widearea_accounts where node_id='
$nodeid
'"
);
DBQueryFatal
(
"delete from interfaces where node_id='
$nodeid
'"
);
DBQueryFatal
(
"delete from nodes where node_id='
$nodeid
'"
);
DBQueryFatal
(
"delete from nodes where phys_nodeid='
$nodeid
'"
);
DBQueryFatal
(
"delete from node_status where node_id='
$nodeid
'"
);
DBQueryFatal
(
"delete from reserved where node_id='
$nodeid
'"
);
DBQueryFatal
(
"delete from node_auxtypes where node_id='
$nodeid
'"
);
DBQueryFatal
(
"delete from node_activity where node_id='
$nodeid
'"
);
$retval
=
SUEXEC
(
$uid
,
$TBADMINGROUP
,
"webdeletenode -b
$nodeid
"
,
SUEXEC_ACTION_DIE
);
}
header
(
"Location: wideareakeys.php3"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment