Skip to content

Commit 4305ccb

Browse files
authored
Merge pull request #4869 from tesilaaliset/update/update-docker-installation
if it's dev or development, clone the project, build it and deploy it…
2 parents d64f778 + 43be0fe commit 4305ccb

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

common/docker-installer.sh

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,21 @@ if [ -d "hiddify-manager" ]; then
1212
exit 1
1313
fi
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
2432
mysqlpassword=$(< /dev/urandom tr -dc 'a-zA-Z0-9' | head -c49; echo)

0 commit comments

Comments
 (0)