added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
#! /bin/sh
HOSTNAME=$(/bin/hostname)
if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" -o ! -z "`echo $HOSTNAME | sed -n '/^[0-9]*\.[0-9].*/p'`" ]; then
# If hostname is invalid, and myhostname not existed in main.cf
/usr/sbin/postconf -h "myhostname" 2>/dev/null
if [ $? -ne 0 ]; then
# Set "localhost" to main.cf
/usr/sbin/postconf -e "myhostname=localhost"
fi
fi