sys-apps/calculate-toolkit: update to r8

pull/2/head 2886
Alexander Tratsevskiy 2 years ago
parent 7e7056f4e3
commit 7a972b94ab

@ -27,4 +27,5 @@ PATCHES=(
"${FILESDIR}"/${P}-root.patch
"${FILESDIR}"/${P}-var.patch
"${FILESDIR}"/${P}-clear.patch
"${FILESDIR}"/${P}-restore-init.patch
)

@ -0,0 +1,23 @@
diff --git a/cl-lxc b/cl-lxc
index 2914fe9..3f69f91 100755
--- a/cl-lxc
+++ b/cl-lxc
@@ -550,6 +550,9 @@ update_prepare() {
einfo $"Launching package update"
lxc-attach $name_lxc -- cl-update -f
rm -rf "$path_lxc/rootfs/var/calculate/{tmp/*,templates/*}"
+ cd $path_lxc/rootfs/etc/runlevels/boot
+ ln -s /etc/init.d/calculate .
+ cd - &>/dev/null
ebegin $"Stopping container"
lxc-stop $name_lxc
@@ -566,7 +569,7 @@ update_prepare() {
ebegin $"Removing temporary container directory $name_lxc"
if [ $type_fs = 'btrfs' ]
then
- btrfs subvolume delete $path_lxc >&/dev/null
+ btrfs subvolume delete $path_lxc &>/dev/null
if [ -n "$path_change" ]
then
rm $path_def/$name_lxc # удалим символическую ссылку
Loading…
Cancel
Save