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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
slapos.package
Commits
32d895c0
Commit
32d895c0
authored
Sep 14, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed steps in slapprepare
parent
e945f936
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
slapprepare/slapprepare/__init__.py
slapprepare/slapprepare/__init__.py
+11
-9
slapprepare/slapprepare/script/slapos
slapprepare/slapprepare/script/slapos
+3
-1
No files found.
slapprepare/slapprepare/__init__.py
View file @
32d895c0
...
@@ -521,6 +521,17 @@ def slapprepare():
...
@@ -521,6 +521,17 @@ def slapprepare():
config
=
Config
()
config
=
Config
()
config
.
setConfig
(
Parser
(
usage
=
usage
).
check_args
())
config
.
setConfig
(
Parser
(
usage
=
usage
).
check_args
())
# Install/update slapos
try
:
_call
([
'zypper'
,
'addrepo'
,
'-fc'
,
'-n'
,
'"SlapOS Official repo"'
,
'http://download.opensuse.org/repositories/home:/VIFIBnexedi/openSUSE_12.1/'
,
'slapos'
])
except
:
pass
_call
([
'zypper'
,
'--gpg-auto-import-keys'
,
'install'
,
'-fy'
,
'slapos.node'
])
_call
([
'systemctl'
,
'stop'
,
'slapos-node.service'
])
print
"SlapOS has been updated"
if
not
config
.
update
:
if
not
config
.
update
:
prepare_from_scratch
(
config
)
prepare_from_scratch
(
config
)
...
@@ -532,15 +543,6 @@ def slapprepare():
...
@@ -532,15 +543,6 @@ def slapprepare():
_call
([
'systemctl'
,
'enable'
,
'slapos-boot-dedicated.service'
])
_call
([
'systemctl'
,
'enable'
,
'slapos-boot-dedicated.service'
])
_call
([
'systemctl'
,
'stop'
,
'slapos-boot-dedicated.service'
])
_call
([
'systemctl'
,
'stop'
,
'slapos-boot-dedicated.service'
])
# Install/update slapos
try
:
_call
([
'zypper'
,
'addrepo'
,
'-fc'
,
'-n'
,
'"SlapOS Official repo"'
,
'http://download.opensuse.org/repositories/home:/VIFIBnexedi/openSUSE_12.1/'
,
'slapos'
])
except
:
pass
_call
([
'zypper'
,
'--gpg-auto-import-keys'
,
'install'
,
'-fy'
,
'slapos.node'
])
_call
([
'systemctl'
,
'start'
,
'slapos-boot-dedicated.service'
])
_call
([
'systemctl'
,
'start'
,
'slapos-boot-dedicated.service'
])
return_code
=
0
return_code
=
0
...
...
slapprepare/slapprepare/script/slapos
View file @
32d895c0
...
@@ -44,7 +44,9 @@ SLAPOS_CONFIGURATION='%(slapos_configuration)s'
...
@@ -44,7 +44,9 @@ SLAPOS_CONFIGURATION='%(slapos_configuration)s'
# Test ipv4/ipv6 connectivity and if not working use openvpn
# Test ipv4/ipv6 connectivity and if not working use openvpn
# and wait for it to be ready
# and wait for it to be ready
/etc/init.d/openvpn stop
if
[
!
-f
$SLAPOS_CONFIGURATION
/openvpn-needed
]
;
then
/etc/init.d/openvpn stop
fi
ping
-c
2
$IPV4CHECK
ping
-c
2
$IPV4CHECK
while
[
$?
!=
0
]
;
do
while
[
$?
!=
0
]
;
do
...
...
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