summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-wirelessmodem.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-08 22:07:58 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-08 22:08:57 +0200
commit12a67646986e89d94d1e41d410c7314488aa1cbe (patch)
treeb06662806a977ef9dac00bb7970727ebc20d75c1 /src/conf_mode/interfaces-wirelessmodem.py
parent2d33cf656f5856fb06e8390fc2250bb99ea0206b (diff)
downloadvyos-1x-12a67646986e89d94d1e41d410c7314488aa1cbe.tar.gz
vyos-1x-12a67646986e89d94d1e41d410c7314488aa1cbe.zip
vyos-util: rename chown_file() > chown()
... to make it clear also directories can be chown(-ed)
Diffstat (limited to 'src/conf_mode/interfaces-wirelessmodem.py')
-rwxr-xr-xsrc/conf_mode/interfaces-wirelessmodem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-wirelessmodem.py b/src/conf_mode/interfaces-wirelessmodem.py
index 49445aaa4..e5af37b8f 100755
--- a/src/conf_mode/interfaces-wirelessmodem.py
+++ b/src/conf_mode/interfaces-wirelessmodem.py
@@ -23,7 +23,7 @@ from netifaces import interfaces
from vyos.config import Config
from vyos.defaults import directories as vyos_data_dir
-from vyos.util import chown_file, chmod_x, cmd, run, is_bridge_member
+from vyos.util import chown, chmod_x, cmd, run, is_bridge_member
from vyos import ConfigError
default_config_data = {
@@ -219,7 +219,7 @@ def apply(wwan):
intf = wwan['intf']
cmd(f'systemctl start ppp@{intf}.service')
# make logfile owned by root / vyattacfg
- chown_file(wwan['logfile'], 'root', 'vyattacfg')
+ chown(wwan['logfile'], 'root', 'vyattacfg')
return None