You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/sys-apps/calculate-toolkit/files/calculate-toolkit-0.3.0-cle...

30 lines
973 B

diff --git a/cl-lxc b/cl-lxc
index 714a44d..2914fe9 100755
--- a/cl-lxc
+++ b/cl-lxc
@@ -549,6 +549,7 @@ update_prepare() {
cl-update -s
einfo $"Launching package update"
lxc-attach $name_lxc -- cl-update -f
+ rm -rf "$path_lxc/rootfs/var/calculate/{tmp/*,templates/*}"
ebegin $"Stopping container"
lxc-stop $name_lxc
@@ -592,6 +593,7 @@ upgrade_lxc() {
reflink='--reflink'
fi
cp -a $reflink $path_lxc_prepare $path_work/$name_upgrading/rootfs$num_next
+ rm -rf $path_work/$name_upgrading/rootfs$num_next/var/calculate/*
eend
ebegin $"Copying network settings from main container"
@@ -608,7 +610,7 @@ upgrade_lxc() {
cat << EOL > $path_work/$name_upgrading/rootfs$num_next/etc/local.d/firststart.start
cl-core --method setup_system --no-progress --usenew-conf --network on
openrc
-#rm /etc/local.d/firststart.start
+rm /etc/local.d/firststart.start
EOL
chmod 755 $path_work/$name_upgrading/rootfs$num_next/etc/local.d/firststart.start
eend