X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/fbe5e9b144afb04fa8e53c8b33eb72bef31dcb33..f12b73b7e04147e232e3cb516b578f749823414c:/doc/tips/inside_dot_ikiwiki.mdwn?ds=sidebyside diff --git a/doc/tips/inside_dot_ikiwiki.mdwn b/doc/tips/inside_dot_ikiwiki.mdwn index 69083a9a5..b649636dc 100644 --- a/doc/tips/inside_dot_ikiwiki.mdwn +++ b/doc/tips/inside_dot_ikiwiki.mdwn @@ -1,4 +1,4 @@ -[[meta title="inside .ikiwiki"]] +[[!meta title="inside .ikiwiki"]] The `.ikiwiki` directory contains ikiwiki's internal state. Normally, you don't need to look in it, but here's some tips for how to do so if @@ -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.