alsa: Don't fail on upgrading the package

If alsa has not been started on a system the upgrade script fails with
exit code 1 and prevents Pakfire from completing the update.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-03-04 15:22:52 +01:00
parent 6dac44d40c
commit 0c051ce279

View File

@@ -22,8 +22,19 @@
############################################################################
#
. /opt/pakfire/lib/functions.sh
mv /etc/asound.state /tmp
# Backup /etc/asound.state
if [ -e "/etc/asound.state" ]; then
mv /etc/asound.state /tmp/asound.state
fi
extract_backup_includes
./uninstall.sh
./install.sh
mv /tmp/asound.state /etc
# Restore asound.state
if [ -e "/tmp/asound.state" ]; then
mv /tmp/asound.state /etc/asound.state
fi
exit 0