server-scripts/lxc-foreach
2018-09-13 07:43:21 +00:00

13 lines
179 B
Bash
Executable File

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