mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-12 04:23:24 +02:00
Changed message in nginx-port removal function
This commit is contained in:
parent
db7d7ea288
commit
092890b6ab
@ -216,12 +216,13 @@ remove_obsolete_nginx_ports() {
|
|||||||
if cat docker-compose.override.* | grep -w [::] > /dev/null 2>&1; then
|
if cat docker-compose.override.* | grep -w [::] > /dev/null 2>&1; then
|
||||||
if cat docker-compose.override.* | grep -w 80:80 > /dev/null 2>&1 && cat docker-compose.override.* | grep -w 443:443 > /dev/null 2>&1 ; then
|
if cat docker-compose.override.* | grep -w 80:80 > /dev/null 2>&1 && cat docker-compose.override.* | grep -w 443:443 > /dev/null 2>&1 ; then
|
||||||
sed -i '/nginx-mailcow:$/,/^$/d' docker-compose.override.*
|
sed -i '/nginx-mailcow:$/,/^$/d' docker-compose.override.*
|
||||||
|
echo -e "\e[32mRemoved obsolete NGINX IPv6 Bind from override File.\e[0m"
|
||||||
if [[ "$(cat docker-compose.override.yml | sed '/^\s*$/d' | wc -l)" == "2" ]]; then
|
if [[ "$(cat docker-compose.override.yml | sed '/^\s*$/d' | wc -l)" == "2" ]]; then
|
||||||
mv docker-compose.override.yml docker-compose.override.yml_backup
|
mv docker-compose.override.yml docker-compose.override.yml_backup
|
||||||
echo -e "\e[31mRemoved obsolete NGINX IPv6 Bind from override File.\e[0m"
|
echo -e "\e[31mdocker-compose.override.yml is empty. Renamed it to ensure mailcow is startable.\e[0m"
|
||||||
elif [[ "$(cat docker-compose.override.yaml | sed '/^\s*$/d' | wc -l)" == "2" ]]; then
|
elif [[ "$(cat docker-compose.override.yaml | sed '/^\s*$/d' | wc -l)" == "2" ]]; then
|
||||||
mv docker-compose.override.yaml docker-compose.override.yaml_backup
|
mv docker-compose.override.yaml docker-compose.override.yaml_backup
|
||||||
echo -e "\e[31mRemoved obsolete NGINX IPv6 Bind from override File.\e[0m"
|
echo -e "\e[31mdocker-compose.override.yml is empty. Renamed it to ensure mailcow is startable.\e[0m"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user