From 83f25d4af1c370dcfb5fc1246e9a69be9983fd4f Mon Sep 17 00:00:00 2001 From: santic-zombie Date: Sun, 23 Jun 2024 18:10:18 +0300 Subject: [PATCH] Test chown --- opennebula-common/APKBUILD | 6 +++--- opennebula-common/opennebula-common.post-install | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/opennebula-common/APKBUILD b/opennebula-common/APKBUILD index c77cd85..6714102 100644 --- a/opennebula-common/APKBUILD +++ b/opennebula-common/APKBUILD @@ -21,9 +21,9 @@ source=" ssh-config" package() { - install -dm750 "${pkgdir}/var/lock/one" - install -dm750 "${pkgdir}/var/log/one" - install -dm750 "${pkgdir}/var/run/one" +# install -dm750 "${pkgdir}/var/lock/one" +# install -dm750 "${pkgdir}/var/log/one" +# install -dm750 "${pkgdir}/var/run/one" install -Dm755 "${srcdir}/ssh-config" "${pkgdir}/usr/share/one/ssh/config" } diff --git a/opennebula-common/opennebula-common.post-install b/opennebula-common/opennebula-common.post-install index 31c7c7c..48da0dc 100644 --- a/opennebula-common/opennebula-common.post-install +++ b/opennebula-common/opennebula-common.post-install @@ -48,6 +48,8 @@ fi for F in /var/lock/one /var/log/one /var/run/one do if [ ! -d "${F}" ]; then + mkdir -p "${F}" + chmod 0750 "${F}" chown "${ONE_USER}:${ONE_GROUP}" "${F}" echo "CHOWNED ${F}" fi