Test chown
This commit is contained in:
@@ -21,10 +21,10 @@ source="
|
|||||||
ssh-config"
|
ssh-config"
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -d -m750 "${pkgdir}/var/lock/one"
|
install -dm750 "${pkgdir}/var/lock/one"
|
||||||
install -d -m750 "${pkgdir}/var/log/one"
|
install -dm750 "${pkgdir}/var/log/one"
|
||||||
install -d -m750 "${pkgdir}/var/run/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"
|
sha512sums="71c4ebfa1b1c32c59b0fead99730604e0edba617f6d6b9a4e9a4d9671fbe75c60f9f4d53fb5e2f35d7c632c7e308bd047af2f1db769de4134eb078d7b0fc3486 ssh-config"
|
||||||
|
|||||||
@@ -47,7 +47,10 @@ fi
|
|||||||
# Fix permissions oneadmin:cloud
|
# Fix permissions oneadmin:cloud
|
||||||
for F in /var/lock/one /var/log/one /var/run/one
|
for F in /var/lock/one /var/log/one /var/run/one
|
||||||
do
|
do
|
||||||
|
if [ ! -d "${F}" ]; then
|
||||||
chown "${ONE_USER}:${ONE_GROUP}" "${F}"
|
chown "${ONE_USER}:${ONE_GROUP}" "${F}"
|
||||||
|
echo "CHOWNED ${F}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user