|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
diff --git a/cl-lxc b/cl-lxc
|
|
|
|
|
index 003ccd9..ce6faea 100755
|
|
|
|
|
index bc19594..2cdcc11 100755
|
|
|
|
|
--- a/cl-lxc
|
|
|
|
|
+++ b/cl-lxc
|
|
|
|
|
@@ -323,17 +323,17 @@ check_vars(){
|
|
|
|
@ -23,7 +23,7 @@ index 003ccd9..ce6faea 100755
|
|
|
|
|
exit 1
|
|
|
|
|
else
|
|
|
|
|
print_help "usage" >&2
|
|
|
|
|
@@ -534,10 +534,13 @@ update_prepare() {
|
|
|
|
|
@@ -534,7 +534,10 @@ update_prepare() {
|
|
|
|
|
ebegin $"Creating mount points"
|
|
|
|
|
for mount_point in $(grep '^lxc.mount.entry' $path_work/$name_upgrading/config | awk {'print $4'})
|
|
|
|
|
do
|
|
|
|
@ -34,12 +34,8 @@ index 003ccd9..ce6faea 100755
|
|
|
|
|
+ fi
|
|
|
|
|
done
|
|
|
|
|
eend
|
|
|
|
|
-exit
|
|
|
|
|
+
|
|
|
|
|
ebegin $"Starting container"
|
|
|
|
|
lxc-start $name_lxc
|
|
|
|
|
# ожидание первоначальной настройки контейнера
|
|
|
|
|
@@ -551,6 +554,7 @@ exit
|
|
|
|
|
|
|
|
|
|
@@ -551,6 +554,7 @@ update_prepare() {
|
|
|
|
|
einfo $"Launching package update"
|
|
|
|
|
lxc-attach $name_lxc -- cl-update -f
|
|
|
|
|
rm -rf "$path_lxc/rootfs/var/calculate/{tmp/*,templates/*}"
|
|
|
|
@ -47,7 +43,7 @@ index 003ccd9..ce6faea 100755
|
|
|
|
|
cd $path_lxc/rootfs/etc/runlevels/boot
|
|
|
|
|
ln -s /etc/init.d/calculate .
|
|
|
|
|
cd - &>/dev/null
|
|
|
|
|
@@ -582,7 +586,7 @@ exit
|
|
|
|
|
@@ -582,7 +586,7 @@ update_prepare() {
|
|
|
|
|
|
|
|
|
|
[ $diff_ == 1 ] && diff_pkg
|
|
|
|
|
|
|
|
|
|