Commit 39fb38bf authored by Jean-Baptiste Petre's avatar Jean-Baptiste Petre

clean code

parent f1033f17
......@@ -37,7 +37,6 @@ import urllib2
SLAPOS_MARK='# Added by SlapOS\n'
class Parser(OptionParser):
"""
Parse all arguments.
......@@ -71,7 +70,6 @@ class Parser(OptionParser):
return options
__import__('pkg_resources').declare_namespace(__name__)
......@@ -89,7 +87,6 @@ class ExecError(SlapError):
pass
def _call(cmd_args, stdout=None, stderr=None, dry_run=False):
"""
Wrapper for subprocess.call() which'll secure the usage of external program's.
......@@ -360,21 +357,13 @@ def prepare_scripts (config):
% dict(slapos_configuration=slapos_configuration))
os.chmod(path, 0755)
# add clientipv4
# path = os.path.join('/','etc','openvpn','clientipv4.conf')
# print "Creating %r" % path
# if not dry_run:
# open(path, 'w').write(
# pkg_resources.resource_stream(__name__,
# 'template/%s' % 'clientipv4.conf.in').read())
# os.chmod(path, 0755)
# remove clientipv4
# Remove old-timers scripts
remove_former_scripts(slapos_configuration)
def configureNtp():
"""Configures NTP daemon"""
server = "server pool.ntp.org"
......
File mode changed from 100644 to 100755
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment