summaryrefslogtreecommitdiff
path: root/sample.install
diff options
context:
space:
mode:
Diffstat (limited to 'sample.install')
-rw-r--r--sample.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/sample.install b/sample.install
new file mode 100644
index 0000000..a05d28b
--- /dev/null
+++ b/sample.install
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+case "$1" in
+ pre_install)
+ # add something which happends before install
+ # $2 contains package version
+ ;;
+ post_install)
+ # add something which happends after install
+ # $2 contains package version
+ ;;
+ pre_upgrade)
+ # add something which happends before update
+ # $2 contains new package version
+ # $3 contains old package version
+ ;;
+ post_upgrade)
+ # add something which happends after update
+ # $2 contains new package version
+ # $3 contains old package version
+ ;;
+ pre_deinstall)
+ # add something which happends before delete
+ # $2 contains package version
+ ;;
+ post_deinstall)
+ # add something which happends after delete
+ # $2 contains package version
+ ;;
+esac