diff --git a/dd-ctl b/dd-ctl index 74c4b1a..b9dd74f 100755 --- a/dd-ctl +++ b/dd-ctl @@ -157,16 +157,20 @@ ddupdate(){ # Bring down services ./dd-ctl down # Switch to latest version - git fetch && git checkout $REPO_BRANCH + git fetch && git checkout "$REPO_BRANCH" git pull --rebase --autostash # Needed for dd-apps submodules... git submodule update --init --recursive - # Rebuild containers - ./dd-ctl build - # Upgrade plugins - ./dd-ctl upgrade-plugins - # Reapply customisations if needed - ./dd-ctl customize + case "${1}" in + --full) + # Rebuild containers + ./dd-ctl build + # Upgrade plugins + ./dd-ctl upgrade-plugins + # Reapply customisations if needed + ./dd-ctl customize + ;; + esac } build_compose(){ @@ -792,7 +796,10 @@ case "$OPERATION" in prerequisites_docker prerequisites_pwd ;; - update|repo-update) + update) + ddupdate --full + ;; + repo-update) ddupdate ;; reset-data|reset-1714)