diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-08 22:07:58 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-08 22:08:57 +0200 |
commit | 12a67646986e89d94d1e41d410c7314488aa1cbe (patch) | |
tree | b06662806a977ef9dac00bb7970727ebc20d75c1 /src/conf_mode/interfaces-pppoe.py | |
parent | 2d33cf656f5856fb06e8390fc2250bb99ea0206b (diff) | |
download | vyos-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-pppoe.py')
-rwxr-xr-x | src/conf_mode/interfaces-pppoe.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-pppoe.py b/src/conf_mode/interfaces-pppoe.py index 407547175..26441838e 100755 --- a/src/conf_mode/interfaces-pppoe.py +++ b/src/conf_mode/interfaces-pppoe.py @@ -24,7 +24,7 @@ from netifaces import interfaces from vyos.config import Config from vyos.defaults import directories as vyos_data_dir from vyos.ifconfig import Interface -from vyos.util import chown_file, chmod_x, cmd +from vyos.util import chown, chmod_x, cmd from vyos import ConfigError default_config_data = { @@ -240,7 +240,7 @@ def apply(pppoe): cmd(f'systemctl start ppp@{intf}.service') # make logfile owned by root / vyattacfg - chown_file(pppoe['logfile'], 'root', 'vyattacfg') + chown(pppoe['logfile'], 'root', 'vyattacfg') return None |