x-ui / start.sh
rachkovii68's picture
Update start.sh
a0d7e58
raw
history blame
667 Bytes
#!/bin/bash
# Set a writable directory for the x-ui database
export XUI_DB_FOLDER=/tmp
# Function to run chisel client in a loop
run_chisel() {
while true; do
echo "Starting chisel client..."
/usr/local/bin/chisel client -v --auth "cloud:2025" vds1.iri1968.dpdns.org:8443 R:8000:127.0.0.1:2053
echo "Chisel client exited. Restarting in 5 seconds..."
sleep 5
done
}
# Start chisel in the background
run_chisel &
# Set webBasePath
/usr/local/x-ui/x-ui setting -webBasePath /
# Reset x-ui admin credentials to admin/admin
/usr/local/x-ui/x-ui setting -username prog10 -password 04091968
# Start x-ui in the foreground
cd /usr/local/x-ui
./x-ui