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
b00a9de2
Commit
b00a9de2
authored
Sep 06, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos will be install/updated at the end of slapprepare
parent
79e7303f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
slapprepare/slapprepare/__init__.py
slapprepare/slapprepare/__init__.py
+13
-7
slapprepare/slapprepare/script/slapos
slapprepare/slapprepare/script/slapos
+0
-1
No files found.
slapprepare/slapprepare/__init__.py
View file @
b00a9de2
...
@@ -32,6 +32,7 @@ from shutil import move
...
@@ -32,6 +32,7 @@ from shutil import move
from
subprocess
import
call
as
subprocessCall
from
subprocess
import
call
as
subprocessCall
import
sys
import
sys
import
urllib2
import
urllib2
from
slapupdate
import
main
as
slapupdate
SLAPOS_MARK
=
'# Added by SlapOS
\
n
'
SLAPOS_MARK
=
'# Added by SlapOS
\
n
'
...
@@ -316,6 +317,7 @@ def configureNtp():
...
@@ -316,6 +317,7 @@ def configureNtp():
new_ntp
.
close
()
new_ntp
.
close
()
_call
([
'chkconfig'
,
'--add'
,
'ntp'
])
_call
([
'chkconfig'
,
'--add'
,
'ntp'
])
_call
([
'systemctl'
,
'enable'
,
'ntp.service'
])
_call
([
'systemctl'
,
'enable'
,
'ntp.service'
])
_call
([
'systemctl'
,
'restart'
,
'ntp.service'
])
class
Config
:
class
Config
:
...
@@ -428,14 +430,18 @@ def slapprepare():
...
@@ -428,14 +430,18 @@ def slapprepare():
if
not
config
.
one_disk
:
if
not
config
.
one_disk
:
_call
([
'/etc/init.d/slapos_firstboot'
])
_call
([
'/etc/init.d/slapos_firstboot'
])
try
:
# Enable but do not run slapos-boot-dedicated.service
_call
([
'zypper'
,
'addrepo'
,
'-fc'
,
'-n'
,
'"SlapOS Official repo"'
,
'http://download.opensuse.org/repositories/home:/VIFIBnexedi/openSUSE_12.1/'
,
'slapos'
])
except
ValueError
:
print
"SlapOS repository was already there"
pass
_call
([
'systemctl'
,
'enable'
,
'slapos-boot-dedicated.service'
])
_call
([
'systemctl'
,
'enable'
,
'slapos-boot-dedicated.service'
])
_call
([
'systemctl'
,
'stop'
,
'slapos-boot-dedicated.service'
])
# Install/update slapos
_call
([
'zypper'
,
'addrepo'
,
'-fc'
,
'-n'
,
'"SlapOS Official repo"'
,
'http://download.opensuse.org/repositories/home:/VIFIBnexedi/openSUSE_12.1/'
,
'slapos'
])
_call
(
'zypper'
,
'--gpg-auto-import-keys'
,
'install'
,
'-fy'
,
'slapos.node'
)
# Update computer
slapupdate
()
_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 @
b00a9de2
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
systemctl stop slapos-node.service
systemctl stop slapos-node.service
systemctl disable slapos-node.service
systemctl disable slapos-node.service
systemctl restart ntp.service
# clean the system
# clean the system
for
service
in
rpcbind network-remotefs postfix
;
do
for
service
in
rpcbind network-remotefs postfix
;
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