mirror of
https://github.com/guezoloic/serverconfig.git
synced 2026-01-25 07:34:23 +00:00
feat(docker-compose.sh): add --install statement
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user