a / start.sh
otion's picture
Create start.sh
1e48ec8 verified
Raw History Blame Contribute Delete
944 Bytes
#!/bin/bash
# 啟動 Jackett 服務於背景
# --NoRestart 參數在 Docker 環境中很重要,防止它自己重啟
# --ListenAddress 0.0.0.0 讓它可以被外部訪問
echo "Starting Jackett in the background..."
/app/Jackett/jackett --NoRestart --ListenAddress 0.0.0.0 &
# 等待幾秒鐘讓 Jackett 初始化
sleep 10
# 顯示提示訊息
echo "-----------------------------------------------------"
echo "Jackett and torrra are now running!"
echo ""
echo "1. Access Jackett Web UI:"
echo " Click the link 'Open application' or go to your Space URL."
echo " NOTE: Any settings you add will be LOST on restart."
echo ""
echo "2. Use torrra:"
echo " Go to the 'Terminal' tab next to the logs."
echo " Run commands like: torrra --help"
echo "-----------------------------------------------------"
# 保持容器運行,以便你可以使用 Terminal
# 如果沒有這個,腳本結束後容器會立刻停止
tail -f /dev/null