server-scripts/lxc-foreach

12 lines
170 B
Plaintext
Raw Normal View History

2014-10-19 15:27:33 +00:00
#!/bin/bash
for n in `lxc-ls`; do
name=n
r=/data/containers/$n/rootfs
root=$r
c=/data/containers/$n/config
config=$c
2015-01-10 07:40:10 +00:00
eval echo "\$ $1" 1>&2
2014-10-19 15:27:33 +00:00
eval "$1"
done