diff options
Diffstat (limited to 'bin/porticron')
-rwxr-xr-x | bin/porticron | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/porticron b/bin/porticron index dba785e..a9d9abd 100755 --- a/bin/porticron +++ b/bin/porticron @@ -114,8 +114,8 @@ fi # detect some common variables SCRIPT_NAME=$(basename $0) -FQDN=$(hostname --fqdn) -HOST=$(hostname -s) +: ${FQDN:=$(hostname --fqdn)} +: ${HOST:=$(hostname -s)} IP=$(dig +short ${FQDN} | tr '\n' ' ') : ${DATE:=$(date -R)} : ${PORTDIR:=$(portageq get_repo_path $(portageq envvar EROOT) gentoo)} |