[UPDATE] - 2022

This commit is contained in:
2022-09-07 17:36:35 +02:00
parent dc4268717c
commit 1ef8caccbd
17 changed files with 267 additions and 55 deletions
Executable
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
usage () {
[[ -z $? ]] && out=0 || out=$?
echo "push file in arguement in all docker isen instances"
echo "$0 file where"
exit $out
}
[[ -z $1 ]] && usage 1
[[ -z $2 ]] && usage 1
[[ ! -f $1 ]] && usage 2
for DI in $(docker ps | grep isenssh | awk '{print $NF}')
do
echo -n "$DI : "
docker cp ${1} ${DI}:${2} &> /dev/null
[[ $? -eq 0 ]] && echo OK || echo FAILED
done