diff --git a/opennebula-common/APKBUILD b/opennebula-common/APKBUILD index c6fcdd4..c77cd85 100644 --- a/opennebula-common/APKBUILD +++ b/opennebula-common/APKBUILD @@ -21,10 +21,10 @@ source=" ssh-config" package() { - install -d -m750 "${pkgdir}/var/lock/one" - install -d -m750 "${pkgdir}/var/log/one" - install -d -m750 "${pkgdir}/var/run/one" + install -dm750 "${pkgdir}/var/lock/one" + install -dm750 "${pkgdir}/var/log/one" + install -dm750 "${pkgdir}/var/run/one" - install -D -m755 "${srcdir}/ssh-config" "${pkgdir}/usr/share/one/ssh/config" + install -Dm755 "${srcdir}/ssh-config" "${pkgdir}/usr/share/one/ssh/config" } sha512sums="71c4ebfa1b1c32c59b0fead99730604e0edba617f6d6b9a4e9a4d9671fbe75c60f9f4d53fb5e2f35d7c632c7e308bd047af2f1db769de4134eb078d7b0fc3486 ssh-config" diff --git a/opennebula-common/opennebula-common.post-install b/opennebula-common/opennebula-common.post-install index 65ae43e..31c7c7c 100644 --- a/opennebula-common/opennebula-common.post-install +++ b/opennebula-common/opennebula-common.post-install @@ -47,7 +47,10 @@ fi # Fix permissions oneadmin:cloud for F in /var/lock/one /var/log/one /var/run/one do + if [ ! -d "${F}" ]; then chown "${ONE_USER}:${ONE_GROUP}" "${F}" + echo "CHOWNED ${F}" + fi done exit 0