Skip to content
Snippets Groups Projects
Commit 013c9db9 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Improves update all command.

parent d9cdc9e6
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
for folder in `find . -maxdepth 2 -mindepth 2 -type d | grep -v 'trash\|temp\|tmp\|git\|common' | grep 'chat'`;
do for rc in `kubectl get ing -l app.kubernetes.io/name=Rocketchat -A --no-headers -o custom-columns=":metadata.name" | sed s/-app//g |grep -v "redirect\|beta\|test"`; do
cd $folder; export NS=`echo $rc | cut -d"-" -f2-`
libre update export SUBDOMAIN=`echo $rc | cut -d"-" -f1`
cd ../..; cd /root/domains/$NS/$SUBDOMAIN;
libre update --batch
done done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment