-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
apologies if this has been asked/brought up before but I'm running into an odd issue.
I'm building deb packages with the before/after install/remove options and those are fine. I examine the postinst and preinst scripts in /var/lib/dpkg/info/package.* and what I've found is that when I specify a before/after upgrade option it executes those scripts as sh instead of bash.
something like this (from the preinst script):
#!/bin/sh
before_upgrade() {
:
#!/bin/bash
echo "running pre-upgrade.sh"
exit 0
}
before_install() {
:
#!/bin/bash
echo "running pre-inst.sh"
if I build a package without the upgrade options, those preinst/postinst scripts are executed as bash. normally the packages I make have explicit instructions to purge instead of "upgrading" them. only ran into this because I wanted to try going the upgrade route instead of the purge/install method.
thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels