install usrmerge if proper symlink does not exist

This commit is contained in:
Aaron Murray 2022-03-30 19:01:02 -05:00
parent 7a384f9d9d
commit a7367e6112

View File

@ -13,7 +13,7 @@
# https://github.com/armbian/config/blob/master/debian-software
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
#
# version: 1.6.13
# version: 1.6.14
#
if [[ $(id -u) -ne 0 ]]; then
@ -185,6 +185,11 @@ if [[ ! ${hostname} =~ ${regex} ]]; then
exit 6
fi
# install usrmerge package if /usr symlink don't exist
if [ "$(readlink -f /lib)" != "/usr/lib" ]; then
apt-get --yes install usrmerge
fi
# Add Debian signing keys to raspbian to prevent apt-get update failures
# when OMV adds security and/or backports repos
if grep -rq raspberrypi.org /etc/apt/*; then