feat(docker-compose.sh): add --install statement

This commit is contained in:
2025-07-31 15:11:06 +02:00
parent 6beeb2738b
commit 06ed6c5607
5 changed files with 37 additions and 5 deletions

View File

@@ -1,4 +1,18 @@
#!/bin/bash
INSTALLED=$1
if [[ "--install" == $INSTALLED ]]; then exit 0; fi
if [[ "--install" == $INSTALLED ]]; then
info_print "\n\
==================================================\n\
wireguard Installation\n\
--------------------------------------------------"
source /usr/local/bin/libs/common.sh
if [[ -f "$ETC_DIR/docker-compose.yml" ]]; then
docker compose up -d -f $ETC_DIR/docker-compose.yml && \
info_print "$ETC_DIR/docker-compose.yml is running." 2;
else info_print "no docker-compose.yml found at $ETC_DIR" 6;
fi
exit 0;
fi