Skip to content

Commit 9e6c4e5

Browse files
authored
Merge pull request #20 from wbollock/chore/remove_upgrade
chore: remove unused upgrade steps
2 parents 9554c7d + 01fcf4d commit 9e6c4e5

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

nfpm/scripts/postinstall.sh

+1-12
Original file line numberDiff line numberDiff line change
@@ -45,28 +45,17 @@ cleanInstall() {
4545
fi
4646
}
4747

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
48+
# Step 2, check if this is a clean install
5449
action="$1"
5550
if [ "$1" = "configure" ] && [ -z "$2" ]; then
5651
# Alpine linux does not pass args, and deb passes $1=configure
5752
action="install"
58-
elif [ "$1" = "configure" ] && [ -n "$2" ]; then
59-
# deb passes $1=configure $2=<current version>
60-
action="upgrade"
6153
fi
6254

6355
case "$action" in
6456
"1" | "install")
6557
cleanInstall
6658
;;
67-
"2" | "upgrade")
68-
upgrade
69-
;;
7059
*)
7160
cleanInstall
7261
;;

0 commit comments

Comments
 (0)