diff --git a/libre b/libre index 085f57cd1eb669bdd15c968e55a23376af9385de..2cb6ff6c80a5b9c7ed3937256b9a9f097db389d4 100755 --- a/libre +++ b/libre @@ -54,6 +54,7 @@ fi create_update_job_nc () { if [ "${APP}" = "nextcloud" ]; then + kubectl -n ${NS} scale --replicas=0 deployment/${APP}-web kubectl -n $NS delete job update-nc libre apply ../../common/nextcloud/other-manifests/update-job.yml fi @@ -87,8 +88,9 @@ case "$1" in cat /tmp/diff read -p "Ctrl-c to not apply the diff" fi - libre apply + kubectl -n ${NS} scale --replicas=0 deployment/${FQDN}-app create_update_job_nc + libre apply else echo "Nothing to update, good job!" fi;;