Skip to content

Commit

Permalink
Probably fix --hostname option
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Sep 13, 2017
1 parent 3500942 commit 2cb4d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,8 @@ log_debug "install.sh version: $VER"
# Check for a fully qualified hostname
log_debug "Checking for fully qualified hostname..."
name="$(hostname -f)"
if ! is_fully_qualified "$name"; then set_hostname
elif [ "$forcehostname" != "" ]; then set_hostname
if [ ! -z "$forcehostname" ]; then set_hostname $forcehostname
elif ! is_fully_qualified "$name"; then set_hostname
fi

# Insert the serial number and password into /etc/virtualmin-license
Expand Down

0 comments on commit 2cb4d68

Please sign in to comment.