1 Feb 01:03
Re: Install error on snapshot
TNHarris <telliamed <at> fastmail.us>
2007-02-01 00:03:48 GMT
2007-02-01 00:03:48 GMT
On Fri, 19 Jan 2007 17:51:36 +0100 (MET), "Robin Gareus"
<robin <at> gareus.org> said:
>
> Bob McConnell wrote:
> > I tried to install today's snapshot, but got the following error from
> > install.php:
> > unrecognised or modified dokuwiki.php
>
> AFAICT all darcs devel versions do have this issue.
> ...
> or at your option add the output of `md5sum conf/dokuwiki.php` to the
> hash list (install.php:39ff)
>
Darcs has a feature to run a script after a command finishes. Here's one
that will add the current hash to install.php. In your ~/.darcs/defaults
add the line:
pull posthook hashconf.sh
pull run-posthook
You could also use ~/dokuwiki/_darcs/prefs/defaults (and probably should
if you manage other repositories with darcs).
hashconf.sh is:
#!/bin/sh
datestamp=`date +%F`
confhash=`md5sum conf/dokuwiki.php | cut -b -32`
newline=`printf "\'dev%s\' => \'%s\'," $datestamp $confhash`
sed -i -e "/\\\$dokuwiki_hash = array/ a $newline" install.php
(Continue reading)
RSS Feed