]> git.pld-linux.org Git - packages/dokuwiki-plugin-data.git/blobdiff - dokuwiki-plugin-data.spec
fixing upgrade trigger
[packages/dokuwiki-plugin-data.git] / 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.030517 seconds and 4 git commands to generate.