Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
73abf174
Commit
73abf174
authored
Jan 25, 2005
by
Leigh B. Stoller
Browse files
Dump new group_policies table. Needs more thought.
parent
158aa54d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/elabinelab.in
View file @
73abf174
...
...
@@ -565,6 +565,18 @@ sub DumpDBGoo()
"
Could not dump table
$table
\n
");
}
#
# Special case the group and user policy tables. Not sure what to
# really do about this; should there be any restrictions inside the
# inner elab?
#
unlink
("
$statedir
/group_policies
");
DBQueryWarn
("
select * from group_policies
"
.
"
where pid='
$pid
' or pid='+' or pid='-'
"
.
"
into outfile '
$statedir
/group_policies'
")
or
die
("
*** $0:
\n
"
.
"
Could not dump table group_policies
\n
");
foreach
my
$table
(
@USERTABLES
)
{
unlink
("
$statedir
/
$table
");
DBQueryWarn
("
select t.* from group_membership as gm
"
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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