Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f684cba82c59355921549ea6ef64c89b > scriptlet

dokuwiki-20090214-2mdv2010.0.noarch.rpm

PRETRANS

/bin/sh
# fix for old lib setup
if [ -d /var/www/dokuwiki/lib -a ! -L /var/www/dokuwiki/lib ]; then
    cd /var/www/dokuwiki
    find lib -type f | \
        tar --create --files-from - --remove-files | \
        (cd /usr/share/dokuwiki && tar --preserve --extract)
    rm -rf lib
    ln -sf ../../../usr/share/dokuwiki/lib lib
fi

PREIN

/bin/sh
if [ $1 = "2" ]; then
    # fix for old setup
    if [ -d /var/lib/dokuwiki/data ]; then
        mv /var/lib/dokuwiki/data/* /var/lib/dokuwiki
        rmdir /var/lib/dokuwiki/data
    fi
fi

POSTIN

/bin/sh
/usr/share/rpm-helper/add-webapp dokuwiki $1

POSTUN

/bin/sh
/usr/share/rpm-helper/del-webapp dokuwiki $1