lxc-foreach: minor refactoring

This commit is contained in:
Jörg Thalheim 2015-04-13 11:40:32 +00:00
parent 1d71efbc49
commit e97f6f0517
1 changed files with 3 additions and 2 deletions

View File

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