lxc-foreach: minor refactoring
This commit is contained in:
parent
1d71efbc49
commit
e97f6f0517
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user