try to fix postfix install when hostname is bad and skip networking on axzez
This commit is contained in:
parent
a51b9b6b7f
commit
7a384f9d9d
11
install
11
install
@ -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.12
|
||||
# version: 1.6.13
|
||||
#
|
||||
|
||||
if [[ $(id -u) -ne 0 ]]; then
|
||||
@ -129,6 +129,11 @@ if [ ${ipv6} -ne 1 ]; then
|
||||
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..."
|
||||
apt-get --allow-releaseinfo-change update
|
||||
|
||||
@ -214,8 +219,12 @@ if [[ ! "${omvInstall}" == "ii" ]]; then
|
||||
echo "Installing openmediavault required packages..."
|
||||
if ! apt-get --yes --no-install-recommends install postfix; then
|
||||
echo "failed installing postfix"
|
||||
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
|
||||
|
||||
echo "Adding openmediavault repo and key..."
|
||||
echo "deb ${omvRepo} ${omvCodename} main" > ${omvSources}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user