Skip to content

d/icecast2.postinst: fix failure on missing env file

MichaIng requested to merge MichaIng/icecast2:patch-1 into master

If /etc/default/icecast2 is missing, the command substitution fails and as of set -e leads to an upgrade failure. Everywhere else /etc/default/icecast2 is handled as optional, which makes sense for an environment file.

This change moves the command substitution into the conditional, to be called only if the file exists, and not abort the script in any case.

Signed-off-by: MichaIng micha@dietpi.com

Merge request reports

Loading