summaryrefslogtreecommitdiff
path: root/server/wallet-admin
diff options
context:
space:
mode:
Diffstat (limited to 'server/wallet-admin')
-rwxr-xr-xserver/wallet-admin53
1 files changed, 40 insertions, 13 deletions
diff --git a/server/wallet-admin b/server/wallet-admin
index f81c195..02982dc 100755
--- a/server/wallet-admin
+++ b/server/wallet-admin
@@ -1,11 +1,6 @@
#!/usr/bin/perl -w
#
-# wallet-admin -- Wallet server administrative commands.
-#
-# Written by Russ Allbery <rra@stanford.edu>
-# Copyright 2008, 2009, 2010 Board of Trustees, Leland Stanford Jr. University
-#
-# See LICENSE for licensing terms.
+# Wallet server administrative commands.
##############################################################################
# Declarations and site configuration
@@ -56,6 +51,9 @@ sub command {
} else {
die "only object or verifier is supported for register\n";
}
+ } elsif ($command eq 'upgrade') {
+ die "too many arguments to upgrade\n" if @args;
+ $admin->upgrade or die $admin->error, "\n";
} else {
die "unknown command $command\n";
}
@@ -67,13 +65,14 @@ __END__
# Documentation
##############################################################################
+=for stopwords
+metadata ACL hostname backend acl acls wildcard SQL Allbery verifier
+MERCHANTABILITY NONINFRINGEMENT sublicense
+
=head1 NAME
wallet-admin - Wallet server administrative commands
-=for stopwords
-metadata ACL hostname backend acl acls wildcard SQL Allbery
-
=head1 SYNOPSIS
B<wallet-admin> I<command> [I<args> ...]
@@ -133,8 +132,40 @@ default as part of database initialization, so this command is used
primarily to register local implementations of additional object types or
ACL schemes.
+=item upgrade
+
+Upgrades the database to the latest schema version, preserving data as
+much as possible.
+
=back
+=head1 AUTHOR
+
+Russ Allbery <rra@stanford.edu>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2008, 2009, 2010, 2011, 2013 The Board of Trustees of the Leland
+Stanford Junior University
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
=head1 SEE ALSO
Wallet::Admin(3), Wallet::Config(3), wallet-backend(8)
@@ -142,8 +173,4 @@ Wallet::Admin(3), Wallet::Config(3), wallet-backend(8)
This program is part of the wallet system. The current version is
available from L<http://www.eyrie.org/~eagle/software/wallet/>.
-=head1 AUTHOR
-
-Russ Allbery <rra@stanford.edu>
-
=cut