diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-05-28 15:38:36 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-05-28 15:38:36 -0400 |
commit | 774a5f86b2fa8dcbc561c50901cf655711e836dc (patch) | |
tree | b3f501ebb0d555ff1a3fe0b315ac140087700cf5 /doc/tips | |
parent | d5d56a24bd49142f8d387adce6c8ca5292af1874 (diff) | |
parent | c928a118d6250f51effdbf2682d44d2d09eeb21d (diff) |
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Diffstat (limited to 'doc/tips')
-rw-r--r-- | doc/tips/inside_dot_ikiwiki.mdwn | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/tips/inside_dot_ikiwiki.mdwn b/doc/tips/inside_dot_ikiwiki.mdwn index 69083a9a5..268910ebc 100644 --- a/doc/tips/inside_dot_ikiwiki.mdwn +++ b/doc/tips/inside_dot_ikiwiki.mdwn @@ -51,14 +51,14 @@ To dump the entire database contents: 'email' => 'joey@kitenet.net', [...] -Editing values is simply a matter of changing values and calling Storable::nstore(). -So to change a user's password: +Editing values is simply a matter of changing values and calling `Storable::nstore()`. +So to change a user's email address: - joey@kodama:~/src/joeywiki/.ikiwiki> perl -le 'use Storable; my $userinfo=Storable::retrieve("userdb"); $userinfo->{"foo"}->{email}=q{foo@bar}; Storable::lock_nstore($userinfo, "underdb")' + joey@kodama:~/src/joeywiki/.ikiwiki> perl -le 'use Storable; my $userinfo=Storable::retrieve("userdb"); $userinfo->{"foo"}->{email}=q{foo@bar}; Storable::lock_nstore($userinfo, "userdb")' To remove that user: - joey@kodama:~/src/joeywiki/.ikiwiki> perl -le 'use Storable; my $userinfo=Storable::retrieve("userdb"); delete $userinfo->{"foo"}; Storable::lock_nstore($userinfo, "underdb")' + joey@kodama:~/src/joeywiki/.ikiwiki> perl -le 'use Storable; my $userinfo=Storable::retrieve("userdb"); delete $userinfo->{"foo"}; Storable::lock_nstore($userinfo, "userdb")' I've not written actual utilities to do this yet because I've only needed to do it rarely, and the data I've wanted has been different each time. |