From 8988b764d3ddef7d8913532430308b9a21da04c7 Mon Sep 17 00:00:00 2001 From: santic-zombie Date: Sun, 23 Jun 2024 17:11:45 +0300 Subject: [PATCH] Fixed post-install --- opennebula-common/opennebula-common.post-install | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/opennebula-common/opennebula-common.post-install b/opennebula-common/opennebula-common.post-install index 675c25c..4088b24 100644 --- a/opennebula-common/opennebula-common.post-install +++ b/opennebula-common/opennebula-common.post-install @@ -46,17 +46,9 @@ fi # Fix permissions oneadmin:cloud (0640/0750) for F in /var/lock/one \ - /var/log/one \ - /var/run/one; + /var/log/one \ + /var/run/one; do - if [ -d "${F}" ]; then - chmod 0750 "${F}" - elif [ -f "${F}" ]; then - chmod 0640 "${F}" - else - continue - fi - chown "${ONE_USER}:${ONE_GROUP}" "${F}" done