server-scripts/lxc-foreach

12 lines
164 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
eval echo "$ $1"
eval "$1"
done