server-scripts/lxc-foreach
2014-10-19 17:27:33 +02:00

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