From 7d15950dc466a7cae50ae8517663101540f5650b Mon Sep 17 00:00:00 2001 From: santic-zombie Date: Sun, 23 Jun 2024 17:18:20 +0300 Subject: [PATCH] Fixed post-install and APKBUILD --- opennebula-common/APKBUILD | 2 +- opennebula-common/opennebula-common.post-install | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opennebula-common/APKBUILD b/opennebula-common/APKBUILD index 095a826..c6fcdd4 100644 --- a/opennebula-common/APKBUILD +++ b/opennebula-common/APKBUILD @@ -5,7 +5,7 @@ pkgver=6.8.0 pkgrel=1 pkgdesc="Common OpenNebula package shared by various components (Community Edition)" url="https://opennebula.io/" -arch="x86_64" +arch="noarch" options="!check" license="Apache" diff --git a/opennebula-common/opennebula-common.post-install b/opennebula-common/opennebula-common.post-install index 4088b24..0b18dd4 100644 --- a/opennebula-common/opennebula-common.post-install +++ b/opennebula-common/opennebula-common.post-install @@ -44,12 +44,12 @@ if [ ! -e "${ONEHOME}/.ssh/config" ] && [ -z "$2" ]; then chown "$ONE_USER:$ONE_GROUP" "${ONEHOME}/.ssh/config" fi -# Fix permissions oneadmin:cloud (0640/0750) +# Fix permissions oneadmin:cloud for F in /var/lock/one \ /var/log/one \ - /var/run/one; + /var/run/one ; do - chown "${ONE_USER}:${ONE_GROUP}" "${F}" + chown ${ONE_USER}:${ONE_GROUP} ${F} done exit 0