summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-openvpn.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-12 11:17:27 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-12 11:18:52 +0200
commitcb76acad993760b2467667e1aa42d164db590ad8 (patch)
treec8c8112ca76c7d22a9d969709228c3e386d951c3 /src/conf_mode/interfaces-openvpn.py
parenta457c9d21f94db233e90268703f8bc97a1ab64ec (diff)
downloadvyos-1x-cb76acad993760b2467667e1aa42d164db590ad8.tar.gz
vyos-1x-cb76acad993760b2467667e1aa42d164db590ad8.zip
vyos.util: rename chmod_x() -> chmod_755()
Diffstat (limited to 'src/conf_mode/interfaces-openvpn.py')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index 28a2cc22e..b3bc78150 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -29,7 +29,7 @@ from shutil import rmtree
from vyos.config import Config
from vyos.defaults import directories as vyos_data_dir
from vyos.ifconfig import VTunIf
-from vyos.util import call, is_bridge_member, chown, chmod_x
+from vyos.util import call, is_bridge_member, chown, chmod_755
from vyos.validate import is_addr_assigned
from vyos import ConfigError
@@ -104,7 +104,7 @@ def openvpn_mkdir(directory):
os.mkdir(directory)
# fix permissions - corresponds to mode 755
- chmod_x(directory)
+ chmod_755(directory)
chown(directory, user, group)
def fixup_permission(filename, permission=S_IRUSR):