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