download new copy of omv-mkaptidx if it doesn't exist

This commit is contained in:
Aaron Murray 2023-12-18 09:16:39 -06:00
parent 5a17e234a6
commit f11dc62936

View File

@ -2,7 +2,7 @@
#
# shellcheck disable=SC1090,SC1091,SC1117,SC2016,SC2046,SC2086
#
# version: 0.0.3
# version: 0.0.4
#
if [[ $(id -u) -ne 0 ]]; then
@ -69,6 +69,12 @@ apt-get --yes \
--option DPkg::Options::="--force-confold" \
dist-upgrade
if [ ! -f "/usr/sbin/omv-mkaptidx" ]; then
echo "omv-mkaptidx does not exist. Downloading..."
wget -O /usr/sbin/omv-mkaptidx https://github.com/openmediavault/openmediavault/raw/master/deb/openmediavault/usr/sbin/omv-mkaptidx
chmod +x /usr/sbin/omv-mkaptidx
fi
echo "Rebuild apt index ..."
omv-mkaptidx