[Update] Add --skip-start switch, implements #3317
parent
4ea843f087
commit
14c27f13cb
13
update.sh
13
update.sh
|
@ -120,6 +120,9 @@ while (($#)); do
|
||||||
--ours)
|
--ours)
|
||||||
MERGE_STRATEGY=ours
|
MERGE_STRATEGY=ours
|
||||||
;;
|
;;
|
||||||
|
--skip-start)
|
||||||
|
SKIP_START=y
|
||||||
|
;;
|
||||||
--gc)
|
--gc)
|
||||||
echo -e "\e[32mCollecting garbage...\e[0m"
|
echo -e "\e[32mCollecting garbage...\e[0m"
|
||||||
docker_garbage
|
docker_garbage
|
||||||
|
@ -470,9 +473,13 @@ if [ -f "data/conf/rspamd/local.d/metrics.conf" ]; then
|
||||||
mv data/conf/rspamd/local.d/metrics.conf data/conf/rspamd/local.d/metrics.conf_deprecated
|
mv data/conf/rspamd/local.d/metrics.conf data/conf/rspamd/local.d/metrics.conf_deprecated
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\e[32mStarting mailcow...\e[0m"
|
if [[ ${SKIP_START} == "y" ]]; then
|
||||||
sleep 2
|
echo -e "\e[33mNot starting mailcow, please run \"docker-compose up -d --remove-orphans\" to start mailcow.\e[0m"
|
||||||
docker-compose up -d --remove-orphans
|
else
|
||||||
|
echo -e "\e[32mStarting mailcow...\e[0m"
|
||||||
|
sleep 2
|
||||||
|
docker-compose up -d --remove-orphans
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "\e[32mCollecting garbage...\e[0m"
|
echo -e "\e[32mCollecting garbage...\e[0m"
|
||||||
docker_garbage
|
docker_garbage
|
||||||
|
|
Loading…
Reference in New Issue