lxc-foreach: minor refactoring
This commit is contained in:
parent
1d71efbc49
commit
e97f6f0517
@ -1,10 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
lxc_root=/data/containers
|
||||||
for n in `lxc-ls`; do
|
for n in `lxc-ls`; do
|
||||||
name=n
|
name=n
|
||||||
r=/data/containers/$n/rootfs
|
r=$lxc_root/$n/rootfs
|
||||||
root=$r
|
root=$r
|
||||||
c=/data/containers/$n/config
|
c=$lxc_root/$n/config
|
||||||
config=$c
|
config=$c
|
||||||
eval echo "\$ $1" 1>&2
|
eval echo "\$ $1" 1>&2
|
||||||
eval "$1"
|
eval "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user