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