server-scripts/lxc-foreach
2015-01-10 08:40:10 +01:00

12 lines
170 B
Bash
Executable File

#!/bin/bash
for n in `lxc-ls`; do
name=n
r=/data/containers/$n/rootfs
root=$r
c=/data/containers/$n/config
config=$c
eval echo "\$ $1" 1>&2
eval "$1"
done