Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
slapos.package
Commits
39fb38bf
Commit
39fb38bf
authored
Dec 05, 2012
by
Jean-Baptiste Petre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean code
parent
f1033f17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
13 deletions
+2
-13
slapprepare/slapprepare/__init__.py
slapprepare/slapprepare/__init__.py
+2
-13
slapprepare/slapprepare/script/slapos
slapprepare/slapprepare/script/slapos
+0
-0
No files found.
slapprepare/slapprepare/__init__.py
View file @
39fb38bf
...
@@ -37,7 +37,6 @@ import urllib2
...
@@ -37,7 +37,6 @@ import urllib2
SLAPOS_MARK
=
'# Added by SlapOS
\
n
'
SLAPOS_MARK
=
'# Added by SlapOS
\
n
'
class
Parser
(
OptionParser
):
class
Parser
(
OptionParser
):
"""
"""
Parse all arguments.
Parse all arguments.
...
@@ -71,7 +70,6 @@ class Parser(OptionParser):
...
@@ -71,7 +70,6 @@ class Parser(OptionParser):
return
options
return
options
__import__
(
'pkg_resources'
).
declare_namespace
(
__name__
)
__import__
(
'pkg_resources'
).
declare_namespace
(
__name__
)
...
@@ -89,7 +87,6 @@ class ExecError(SlapError):
...
@@ -89,7 +87,6 @@ class ExecError(SlapError):
pass
pass
def
_call
(
cmd_args
,
stdout
=
None
,
stderr
=
None
,
dry_run
=
False
):
def
_call
(
cmd_args
,
stdout
=
None
,
stderr
=
None
,
dry_run
=
False
):
"""
"""
Wrapper for subprocess.call() which'll secure the usage of external program's.
Wrapper for subprocess.call() which'll secure the usage of external program's.
...
@@ -360,21 +357,13 @@ def prepare_scripts (config):
...
@@ -360,21 +357,13 @@ def prepare_scripts (config):
%
dict
(
slapos_configuration
=
slapos_configuration
))
%
dict
(
slapos_configuration
=
slapos_configuration
))
os
.
chmod
(
path
,
0755
)
os
.
chmod
(
path
,
0755
)
# add clientipv4
# remove 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 old-timers scripts
# Remove old-timers scripts
remove_former_scripts
(
slapos_configuration
)
remove_former_scripts
(
slapos_configuration
)
def
configureNtp
():
def
configureNtp
():
"""Configures NTP daemon"""
"""Configures NTP daemon"""
server
=
"server pool.ntp.org"
server
=
"server pool.ntp.org"
...
...
slapprepare/slapprepare/script/slapos
100644 → 100755
View file @
39fb38bf
File mode changed from 100644 to 100755
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment