Update DockerEntrypoint.sh (test2)

This commit is contained in:
OnceUponATimeInAmerica 2024-08-27 08:54:02 +03:30 committed by GitHub
parent e792b7b2f3
commit a57a8606b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 # Run sshd
/usr/sbin/sshd /usr/sbin/sshd