fix version dependent commands
This commit is contained in:
parent
dd779c39f9
commit
cf90d07454
8
install
8
install
@ -60,11 +60,11 @@ if dpkg -l openmediavault > /dev/null; then
|
|||||||
install openmediavault
|
install openmediavault
|
||||||
|
|
||||||
if [ ${version} -eq 5 ]; then
|
if [ ${version} -eq 5 ]; then
|
||||||
|
omv-confdbadm populate
|
||||||
|
elif [ ${version} -lt 5 ]; then
|
||||||
omv-initsystem
|
omv-initsystem
|
||||||
omv-mkconf interfaces
|
omv-mkconf interfaces
|
||||||
omv-mkconf issue
|
omv-mkconf issue
|
||||||
elif [ ${version} -lt 5 ]; then
|
|
||||||
omv-confdbadm populate
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -87,9 +87,9 @@ if [ -f "${file}" ]; then
|
|||||||
fi
|
fi
|
||||||
wget --no-check-certificate ${url}/${file}
|
wget --no-check-certificate ${url}/${file}
|
||||||
if [ -f "${file}" ]; then
|
if [ -f "${file}" ]; then
|
||||||
if ! dpkg -i ${file}; then
|
if ! dpkg --install ${file}; then
|
||||||
echo "Installing other dependencies ..."
|
echo "Installing other dependencies ..."
|
||||||
apt-get -f install
|
apt-get --fix-broken install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Updating repos ..."
|
echo "Updating repos ..."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user