Add functionality to disable docker stacks with zsh update function

This commit is contained in:
Marko Korhonen 2022-04-10 13:28:26 +03:00
parent cbc3596409
commit 60a90807a8
2 changed files with 8 additions and 3 deletions

1
docker/.gitignore vendored
View file

@ -1 +1,2 @@
*/.env
*/DISABLED

View file

@ -162,9 +162,13 @@ update() {
docker-update() {
for dir in $HOME/git/dotfiles/docker/*; do
cd $dir
dct pull
dct up -d
cd ..
if [[ -f "DISABLED" ]]; then
echo "$dir stack is disabled, skipping..."
else
dct pull
dct up -d
cd ..
fi
done
}