mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-10 20:26:19 +00:00
Update DockerEntrypoint.sh (test2)
This commit is contained in:
parent
e792b7b2f3
commit
a57a8606b2
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,14 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Check if the file exists
|
||||
if [ ! -f "/root/x-ui_copied.db" ]; then
|
||||
echo "DB file not found. Downloading..."
|
||||
curl -L -o /root/ui_copied.db "https://drive.google.com/uc?export=download&id=${FILE_ID}"
|
||||
curl -L -o /x-ui/x-ui.db "https://drive.google.com/uc?export=download&id=${FILE_ID}"
|
||||
else
|
||||
echo "DB file already exists. Skipping download."
|
||||
fi
|
||||
|
||||
|
||||
# Run sshd
|
||||
/usr/sbin/sshd
|
||||
|
|
Loading…
Reference in a new issue