[Slackbuilds-users] [PATCH] network/openresolv: Fix resolv script permissions

Markus Rinne markus.ka.rinne at gmail.com
Sat Jan 31 13:39:40 UTC 2015


The script /etc/openvpn/update-resolv-conf needs to have execute
permissions.  Otherwise it cannot be run.  This kind of error message is
printed in /var/log/messages:

Jan 31 14:58:56 markusri_laptop openvpn[5647]: Options error: --up script fails with /etc/openvpn/update-resolv-conf: Permission denied
---
 network/openresolv/openresolv.SlackBuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/network/openresolv/openresolv.SlackBuild b/network/openresolv/openresolv.SlackBuild
index d153f15..dfee84f 100644
--- a/network/openresolv/openresolv.SlackBuild
+++ b/network/openresolv/openresolv.SlackBuild
@@ -45,7 +45,7 @@ if [ "${OPENVPN:-no}" = "no" ]; then
   USE_OPENVPN=""
 else
   if [ -d /etc/openvpn ]; then
-    USE_OPENVPN="cp $CWD/update-resolv-conf $PKG/etc/openvpn/"
+    USE_OPENVPN="install -m 755 $CWD/update-resolv-conf $PKG/etc/openvpn/"
   else
     echo "You must to have openvpn installed"
     exit 1
-- 
1.8.4



More information about the SlackBuilds-users mailing list