diff --git a/tools/setup/install-aws-server b/tools/setup/install-aws-server index 724b9c3c9a..844e2eed71 100755 --- a/tools/setup/install-aws-server +++ b/tools/setup/install-aws-server @@ -39,6 +39,7 @@ fi if [ -n "${zulip_confdir-}" ]; then zulipconf_file="$zulip_confdir/zulip.conf" secrets_file="$zulip_confdir/zulip-secrets.conf" + settings_file="$zulip_confdir/settings.py" fi if [ -z "$secrets_file" ]; then echo "Specify secrets_file via environment." @@ -82,6 +83,9 @@ scp "${SSH_OPTS[@]}" -i "$amazon_key_file" "$secrets_file" root@"$server":/etc/z if [ -e "$zulipconf_file" ]; then scp "${SSH_OPTS[@]}" -i "$amazon_key_file" "$zulipconf_file" root@"$server":/etc/zulip/zulip.conf fi +if [ -e "$settings_file" ]; then + scp "${SSH_OPTS[@]}" -i "$amazon_key_file" "$settings_file" root@"$server":/etc/zulip/settings.py +fi # shellcheck disable=SC2029 disable=SC2087 ssh "${SSH_OPTS[@]}" "$server" -i "$amazon_key_file" -lroot /bin/bash <