🗃️ Committing everything that changed 🗃️
Some checks failed
release-tag / release-image (push) Failing after 1m43s

Dockerfile
rootfs/opt/echoip/html/index.html
rootfs/usr/local/etc/docker/bin/echoip-cli
rootfs/usr/local/etc/docker/init.d/zz-echoip.sh
This commit is contained in:
casjay
2025-06-11 12:40:34 -04:00
parent 748e52ad9b
commit cb8b97ae4d
4 changed files with 22 additions and 11 deletions

View File

@@ -201,15 +201,15 @@ __update_conf_files() {
[ -d "/data/echoip" ] && cp -Rf "/data/echoip/." "/opt/echoip/"
sed -i "s|REPLACE_HOST_NAME|$sysname|g" /opt/echoip/html/index.html
sed -i "s|REPLACE_MODIFIED|$(date +'%Y-%m-%d at %H:%M')|g" /opt/echoip/html/index.html
if [ -n "$host_ip_4" ]; then
sed -i "s|REPLACE_CURRENT_IP_4|$host_ip_4|g" /opt/echoip/html/index.html
else
if [ -z "$host_ip_4" ]; then
sed -i '/REPLACE_CURRENT_IP_4/d' /opt/echoip/html/index.html
fi
if [ -n "$host_ip_6" ]; then
sed -i "s|REPLACE_CURRENT_IP_6|$host_ip_6|g" /opt/echoip/html/index.html
else
sed -i "s|REPLACE_CURRENT_IP_4|$host_ip_4|g" /opt/echoip/html/index.html
fi
if [ -z "$host_ip_6" ]; then
sed -i '/REPLACE_CURRENT_IP_6/d' /opt/echoip/html/index.html
else
sed -i "s|REPLACE_CURRENT_IP_6|$host_ip_6|g" /opt/echoip/html/index.html
fi
return $exitCode
}