Skip to content

Commit 45934c6

Browse files
author
Peter Göbel
committed
switched back to if/else
1 parent 71dc27e commit 45934c6

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

runtime/functions

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

261261
set_resolvconf_perms() {
262-
echo "Setting resolv ACLs..."
263-
{
264-
setfacl -m user:${PG_USER}:r /etc/resolv.conf
265-
} && {
266-
echo "`setfacl` not supported"
267-
}
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
268267
}
269268

270269
configure_recovery() {

0 commit comments

Comments
 (0)