diff options
-rwxr-xr-x | debian/open-infrastructure-container-tools.postinst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/open-infrastructure-container-tools.postinst b/debian/open-infrastructure-container-tools.postinst index 39dd01b..ee13b73 100755 --- a/debian/open-infrastructure-container-tools.postinst +++ b/debian/open-infrastructure-container-tools.postinst @@ -102,6 +102,18 @@ case "${1}" in rmdir -p /etc/open-infrastructure/container > /dev/null 2>&1 || true fi + # upgrade from buster: logfiles + if ls /var/log/open-infrastructure/container.log* > /dev/null 2>&1 + then + if [ -e /var/log/compute-tools ] + then + mv /var/log/open-infrastructure/* /var/log/compute-tools 2>&1 || true + rmdir /var/log/open-infrastructure > /dev/null 2>&1 || true + else + mv /var/log/open-infrastructure /var/log/compute-tools + fi + fi + if [ ! -e "${CONFFILE}" ] then |