Skip to content

Commit

Permalink
satisfy shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
bohendo committed Sep 22, 2023
1 parent 929e8e0 commit 54e126c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/cloudexec/user_data.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ apt-get update
apt-get install -y jq s3cmd tmux python3-pip python3-venv unzip

# set hostname
if [[ "$(hostname)" != "cloudexec" ]]; then
current_hostname="$(hostname)"
if [[ ${current_hostname} != "cloudexec" ]]; then
echo "Setting hostname..."
echo "cloudexec" >/etc/hostname
hostname -F /etc/hostname
Expand Down

0 comments on commit 54e126c

Please sign in to comment.