try to fix postfix install when hostname is bad and skip networking on axzez
This commit is contained in:
parent
a51b9b6b7f
commit
7a384f9d9d
13
install
13
install
@ -13,7 +13,7 @@
|
|||||||
# https://github.com/armbian/config/blob/master/debian-software
|
# https://github.com/armbian/config/blob/master/debian-software
|
||||||
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
|
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
|
||||||
#
|
#
|
||||||
# version: 1.6.12
|
# version: 1.6.13
|
||||||
#
|
#
|
||||||
|
|
||||||
if [[ $(id -u) -ne 0 ]]; then
|
if [[ $(id -u) -ne 0 ]]; then
|
||||||
@ -129,6 +129,11 @@ if [ ${ipv6} -ne 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ -f "/usr/libexec/config-rtl8367rb.sh" ]; then
|
||||||
|
echo "Skipping network because swconfig controlled switch found."
|
||||||
|
skipNet=1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Updating repos before installing..."
|
echo "Updating repos before installing..."
|
||||||
apt-get --allow-releaseinfo-change update
|
apt-get --allow-releaseinfo-change update
|
||||||
|
|
||||||
@ -214,7 +219,11 @@ if [[ ! "${omvInstall}" == "ii" ]]; then
|
|||||||
echo "Installing openmediavault required packages..."
|
echo "Installing openmediavault required packages..."
|
||||||
if ! apt-get --yes --no-install-recommends install postfix; then
|
if ! apt-get --yes --no-install-recommends install postfix; then
|
||||||
echo "failed installing postfix"
|
echo "failed installing postfix"
|
||||||
exit 2
|
sed -i '/^myhostname/d' /etc/postfix/main.cf
|
||||||
|
if ! apt-get --yes --fix-broken install; then
|
||||||
|
echo "failed installing postfix and unable to fix"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Adding openmediavault repo and key..."
|
echo "Adding openmediavault repo and key..."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user