summarylogtreecommitdiffstats
path: root/edis.install
diff options
context:
space:
mode:
authorVictor2015-06-08 20:08:33 +0200
committerVictor2015-06-08 20:08:33 +0200
commit8134a4b809c901e7693f2ce876d4ba0a479e3c58 (patch)
tree44f8d4e687d7ec19ed9fc2501ad8f9859718bdf3 /edis.install
downloadaur-8134a4b809c901e7693f2ce876d4ba0a479e3c58.tar.gz
Migrated from AUR 3
Diffstat (limited to 'edis.install')
-rw-r--r--edis.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/edis.install b/edis.install
new file mode 100644
index 000000000000..27ea8d423708
--- /dev/null
+++ b/edis.install
@@ -0,0 +1,21 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ newVersion=$1
+ oldVersion=$2
+
+ if [ $newVersion = 2.0 ]; then
+ for user in /home/*; do
+ edisDir=/home/${user}/.edis
+ [ -d $edisDir ] && rm $edisDir
+ done
+ fi
+
+ post_install
+}
+
+post_remove() {
+ post_install
+}