We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9554c7d + 01fcf4d commit 9e6c4e5Copy full SHA for 9e6c4e5
nfpm/scripts/postinstall.sh
@@ -45,28 +45,17 @@ cleanInstall() {
45
fi
46
}
47
48
-# upgrade() {
49
-# # Step 3(upgrade), do what you need
50
-# # TODO - do I need upgrade steps?
51
-# }
52
-
53
-# Step 2, check if this is a clean install or an upgrade
+# Step 2, check if this is a clean install
54
action="$1"
55
if [ "$1" = "configure" ] && [ -z "$2" ]; then
56
# Alpine linux does not pass args, and deb passes $1=configure
57
action="install"
58
-elif [ "$1" = "configure" ] && [ -n "$2" ]; then
59
- # deb passes $1=configure $2=<current version>
60
- action="upgrade"
61
62
63
case "$action" in
64
"1" | "install")
65
cleanInstall
66
;;
67
- "2" | "upgrade")
68
- upgrade
69
- ;;
70
*)
71
72
0 commit comments