Skip to content

Commit 24b09a4

Browse files
author
Peter Göbel
committed
simplified if condition
1 parent 45934c6 commit 24b09a4

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

runtime/functions

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,8 @@ trust_localnet() {
259259
}
260260

261261
set_resolvconf_perms() {
262-
if setfacl -m user:${PG_USER}:r /etc/resolv.conf; then
263-
echo "Setting resolv.conf ACLs..."
264-
else
265-
echo "resolv.conf ACLs couldn't be set: `setfacl` not supported"
266-
fi
262+
echo "Setting resolv.conf ACLs..."
263+
setfacl -m user:${PG_USER}:r /etc/resolv.conf || true
267264
}
268265

269266
configure_recovery() {

0 commit comments

Comments
 (0)