improve local testing shell script
This commit is contained in:
parent
172e0871d1
commit
f8c8767a83
1 changed files with 29 additions and 7 deletions
|
@ -9,11 +9,33 @@ docker-compose ()
|
|||
# ===========================================================================
|
||||
# Configure
|
||||
|
||||
# disable unused services
|
||||
chmod -x baikal/docker-compose.baikal.yml
|
||||
chmod -x posteio/docker-compose.posteio.yml
|
||||
chmod -x netdata/docker-compose.netdata.yml
|
||||
chmod -x photo/docker-compose.pigallery.yml
|
||||
if [[ $# -eq 0 ]] ; then
|
||||
echo 'Nothing to do'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
"on")
|
||||
# disable unused services
|
||||
chmod -x baikal/docker-compose.baikal.yml
|
||||
chmod -x posteio/docker-compose.posteio.yml
|
||||
chmod -x netdata/docker-compose.netdata.yml
|
||||
chmod -x photo/docker-compose.pigallery.yml
|
||||
# local testing
|
||||
chmod -x traefik/docker-compose.traefik.yml
|
||||
exit 0;;
|
||||
"off")
|
||||
# restore state
|
||||
chmod +x baikal/docker-compose.baikal.yml
|
||||
chmod +x posteio/docker-compose.posteio.yml
|
||||
chmod +x netdata/docker-compose.netdata.yml
|
||||
chmod +x photo/docker-compose.pigallery.yml
|
||||
chmod +x traefik/docker-compose.traefik.yml
|
||||
exit 0;;
|
||||
*)
|
||||
echo "Unknown command: on/off are valid values"
|
||||
exit 1;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
# local testing
|
||||
chmod -x traefik/docker-compose.traefik.yml
|
||||
|
|
Loading…
Add table
Reference in a new issue