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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos.package
Commits
c2bca724
Commit
c2bca724
authored
May 17, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run slapprepare -u when running slapupdate.
parent
48f7e482
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
slapprepare/slapprepare/slapupdate.py
slapprepare/slapprepare/slapupdate.py
+4
-0
No files found.
slapprepare/slapprepare/slapupdate.py
View file @
c2bca724
...
...
@@ -173,6 +173,9 @@ def update_system ():
""" Dist-Upgrade of system """
_call
([
'zypper'
,
'--gpg-auto-import-keys'
,
'dup'
,
'-ly'
],
stdout
=
None
)
def
update_slapprepare_scripts
():
""" Run slapprepare -u (script that upgrade boot scripts and so on) """
_call
([
'slapprepare'
,
'-u'
],
stdout
=
None
)
def
download_info_from_networkcache
(
path
,
slapos_conf
):
"""
...
...
@@ -264,6 +267,7 @@ def update_machine(config):
# Check if dist-upgrade is needed
if
suse_version
()
<
config
.
opensuse_version
:
logger
.
info
(
"We will now upgrade your system"
)
update_slapprepare_scripts
()
update_system
()
os
.
system
(
'reboot'
)
else
:
...
...
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