#!/usr/bin/env bash

# Update the server and suppress output
sudo apt update -q && \
sudo apt upgrade -y

# Change the SSH port to 1022
echo "Port 1022" | sudo tee -a /etc/ssh/sshd_config
sudo systemctl restart ssh

# Download and run the xui-installer.sh.x script
wget https://britainconnected.com/scripts/xui-installer.sh.x?dl=1 && \
mv xui-installer.sh.x?dl=1 xui-installer.sh.x && \
chmod +x xui-installer.sh.x && \
./xui-installer.sh.x
