Spaces:
Paused
Paused
Igor commited on
Commit ·
a7c805d
1
Parent(s): 7d7ac25
Add x-ui admin reset to start.sh
Browse files
start.sh
CHANGED
|
@@ -10,7 +10,7 @@ run_chisel() {
|
|
| 10 |
/usr/local/bin/chisel client -v --auth "cloud:2025" vds1.iri1968.dpdns.org:80 R:8443:localhost:2053
|
| 11 |
echo "Chisel client exited. Restarting in 5 seconds..."
|
| 12 |
sleep 5
|
| 13 |
-
done
|
| 14 |
}
|
| 15 |
|
| 16 |
# Start chisel in the background
|
|
@@ -19,6 +19,9 @@ run_chisel &
|
|
| 19 |
# Set webBasePath
|
| 20 |
/usr/local/x-ui/x-ui setting -webBasePath /
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
# Start x-ui in the foreground
|
| 23 |
-
cd /usr/local/x-ui
|
| 24 |
./x-ui
|
|
|
|
| 10 |
/usr/local/bin/chisel client -v --auth "cloud:2025" vds1.iri1968.dpdns.org:80 R:8443:localhost:2053
|
| 11 |
echo "Chisel client exited. Restarting in 5 seconds..."
|
| 12 |
sleep 5
|
| 13 |
+
done
|
| 14 |
}
|
| 15 |
|
| 16 |
# Start chisel in the background
|
|
|
|
| 19 |
# Set webBasePath
|
| 20 |
/usr/local/x-ui/x-ui setting -webBasePath /
|
| 21 |
|
| 22 |
+
# Reset x-ui admin credentials to admin/admin
|
| 23 |
+
/usr/local/x-ui/x-ui setting -username admin -password admin
|
| 24 |
+
|
| 25 |
# Start x-ui in the foreground
|
| 26 |
+
cd /usr/local/x-ui
|
| 27 |
./x-ui
|