File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,21 @@ if [ -d "hiddify-manager" ]; then
1212 exit 1
1313fi
1414
15- # Create the 'hiddify-manager' directory
16- mkdir hiddify-manager
17- cd hiddify-manager
18-
19- # Download the docker-compose.yml file
20- wget https://raw.githubusercontent.com/hiddify/Hiddify-Manager/refs/heads/main/docker-compose.yml
21-
15+ # Download the docker-compose.yml file or clone the project if it's on dev
16+ if [[ " $TAG " == " develop" || " $TAG " == " dev" ]]; then
17+ # Check if Git is installed, if not, install it
18+ command -v git & > /dev/null || (echo " Installing Git..." ; sudo apt-get update && sudo apt-get install -y git)
19+ git clone https://github.com/hiddify/Hiddify-Manager.git
20+ cd Hiddify-Manager
21+ git submodule update --init --recursive
22+ git submodule update --recursive --remote
23+ docker compose -f docker-compose.yml build
24+ else
25+ # Create the 'hiddify-manager' directory
26+ mkdir hiddify-manager
27+ cd hiddify-manager
28+ wget https://raw.githubusercontent.com/hiddify/Hiddify-Manager/refs/heads/main/docker-compose.yml
29+ fi
2230
2331# Generate random passwords for MySQL and Redis
2432mysqlpassword=$( < /dev/urandom tr -dc ' a-zA-Z0-9' | head -c49; echo)
You can’t perform that action at this time.
0 commit comments