From c0818cdf8e90215200b6b036813f71a6aae16612 Mon Sep 17 00:00:00 2001 From: darta Date: Thu, 20 Jan 2022 21:41:08 +0100 Subject: [PATCH] fix(dd-ctl): added yml, adminer, nextcloud-scan --- dd-ctl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dd-ctl b/dd-ctl index b9230d7..d4990a6 100755 --- a/dd-ctl +++ b/dd-ctl @@ -11,6 +11,7 @@ if [ -z "$OPERATION" ]; then echo " Update repository: ./dd-ctl repo-update [branch-name] (defaults to master)" echo " Bring the current project up: ./dd-ctl all" echo " Build the compose files: ./dd-ctl build" + echo " Regenerate docker-compose.yml from conf: ./dd-ctl yml" echo " Build the devel compose files: ./dd-ctl build-devel" echo " Start the project when stopped: ./dd-ctl up" echo " Stop the project when started: ./dd-ctl down" @@ -18,6 +19,9 @@ if [ -z "$OPERATION" ]; then echo " Update SAML certificates: ./dd-ctl saml" echo " Upgrade plugins: ./dd-ctl upgrade-plugins" echo " Branding (custom/img, custom/menu): ./dd-ctl branding" + echo " Restart api if changes applied (development): ./dd-ctl restart-api" + echo " Generate adminer.yml to access DBs: ./dd-ctl adminer" + echo " Restart api if changes applied (development): ./dd-ctl restart-api" exit 1 fi @@ -417,6 +421,10 @@ if [ "$OPERATION" = "build" ]; then build fi +if [ "$OPERATION" = "yml" ]; then + build_compose +fi + if [ "$OPERATION" = "build-devel" ]; then build_compose_develop fi @@ -488,6 +496,12 @@ if [ "$OPERATION" = "upgrade-plugins" ]; then upgrade_plugins_wp fi +if [ "$OPERATION" = "restart-api" ]; then + up + wait_for_moodle + docker restart isard-sso-api +fi + if [ "$OPERATION" = "adminer" ]; then extras_adminer fi