mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-24 16:57:02 +00:00
Refactor use of 'sudo -E'
This commit is contained in:
committed by
Wataru Ishida
parent
bd96aea470
commit
f2f76ca120
@@ -473,8 +473,9 @@ rm -f /usr/sbin/policy-rc.d
|
||||
|
||||
for script in Configure.get('scripts', []):
|
||||
logger.info("Configuration script %s..." % script)
|
||||
onlu_execute_sudo("-E unshare -pf --mount-proc %s %s" % (script, dir_),
|
||||
ex=OnlRfsError("script '%s' failed." % script))
|
||||
onlu_execute_sudo("unshare -pf --mount-proc %s %s" % (script, dir_),
|
||||
ex=OnlRfsError("script '%s' failed." % script),
|
||||
env=True)
|
||||
|
||||
|
||||
for command in Configure.get('commands', []):
|
||||
|
||||
Reference in New Issue
Block a user