]> git.pld-linux.org Git - packages/dokuwiki-plugin-data.git/commitdiff
fixing upgrade trigger auto/th/dokuwiki-plugin-data-20120716-3
authorElan Ruusamäe <glen@delfi.ee>
Fri, 17 Aug 2012 18:32:55 +0000 (21:32 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 17 Aug 2012 18:32:55 +0000 (21:32 +0300)
dokuwiki-plugin-data.spec

index 9c7a4417defa3495ba89f29e9fbe3dabea15c52e..45a781b4867d41038238a59eb14b955a0e83ea21 100644 (file)
@@ -4,7 +4,7 @@
 Summary:       DokuWiki Structured Data Plugin
 Name:          dokuwiki-plugin-%{plugin}
 Version:       20120716
-Release:       2
+Release:       3
 License:       GPL v2
 Group:         Applications/WWW
 #Source0:      http://github.com/splitbrain/dokuwiki-plugin-%{plugin}/tarball/master#/%{plugin}-%{version}.tgz
@@ -95,9 +95,13 @@ EOF
 chown root:http %{metadir}/data.sqlite
 chmod 660 %{metadir}/data.sqlite
 
-%triggerun -- %{name} < 20120716-2
+%triggerun -- %{name} < 20120716-3
+if [ -f %{metadir}/data.sqlite3 ]; then
+       # already migrated
+       exit 0
+fi
 # perform sqlite2 -> sqlite3 migration of both tools present
-if [ ! -x /usr/bin/sqlite ] || [ ! -x -a -x /usr/bin/sqlite3 ]; then
+if [ ! -x /usr/bin/sqlite ] || [ ! -x /usr/bin/sqlite3 ]; then
        echo >&2 "data plugin: To migrate db from sqlite2 to sqlite3 you need to install 'sqlite' and 'sqlite3' packages"
        exit 0
 fi
This page took 0.231643 seconds and 4 git commands to generate.