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
Ophélie Gagnard
slapos.package
Commits
f3ea6a7f
Commit
f3ea6a7f
authored
Sep 05, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos rpm will be installed if it was not
parent
1eb463f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
slapprepare/slapprepare/script/slapos
slapprepare/slapprepare/script/slapos
+6
-1
No files found.
slapprepare/slapprepare/script/slapos
View file @
f3ea6a7f
...
@@ -91,6 +91,11 @@ SLAP_INSTALL_LOG=/opt/slapos/slapos-install.log
...
@@ -91,6 +91,11 @@ SLAP_INSTALL_LOG=/opt/slapos/slapos-install.log
while
:
;
do
while
:
;
do
if
[
-f
/opt/slapos/bin/slapformat
]
&&
[
-f
/opt/slapos/bin/bang
]
;
then
if
[
-f
/opt/slapos/bin/slapformat
]
&&
[
-f
/opt/slapos/bin/bang
]
;
then
zypper search
-i
slapos.node |
grep
slapos.node
>
/dev/null
if
[
$?
!=
0
]
;
then
echo
-n
"Installing SlapOS"
zypper
--gpg-auto-import-keys
install
-fy
slapos.node
fi
# slapos tools available, nothing to do
# slapos tools available, nothing to do
break
break
fi
fi
...
@@ -105,7 +110,7 @@ mkdir -v -p -m 0755 $repo
...
@@ -105,7 +110,7 @@ mkdir -v -p -m 0755 $repo
# Fix path in case of old config:
# Fix path in case of old config:
SLAPOS_GOOD_CONFIGURATION
=
/etc/opt/slapos
SLAPOS_GOOD_CONFIGURATION
=
/etc/opt/slapos
/
if
[
$SLAPOS_GOOD_CONFIGURATION
!=
$SLAPOS_CONFIGURATION
]
;
then
if
[
$SLAPOS_GOOD_CONFIGURATION
!=
$SLAPOS_CONFIGURATION
]
;
then
sed
-i
"s|
$SLAPOS_GOOD_CONFIGURATION
|
$SLAPOS_CONFIGURATION
|g"
/etc/cron.d/slapos-node
sed
-i
"s|
$SLAPOS_GOOD_CONFIGURATION
|
$SLAPOS_CONFIGURATION
|g"
/etc/cron.d/slapos-node
sed
-i
"s|
$SLAPOS_GOOD_CONFIGURATION
|
$SLAPOS_CONFIGURATION
|g"
/usr/sbin/slapos-start
sed
-i
"s|
$SLAPOS_GOOD_CONFIGURATION
|
$SLAPOS_CONFIGURATION
|g"
/usr/sbin/slapos-start
...
...
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