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
Boxiang Sun
slapos.package
Commits
2a1907ef
Commit
2a1907ef
authored
Jun 12, 2013
by
Vivien Alger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ugly hack to try to make OpenSuse build
parent
207bfcf8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
prepare_slapos_build.sh
prepare_slapos_build.sh
+2
-15
templates/rpm/slapos.spec.base.in
templates/rpm/slapos.spec.base.in
+2
-0
templates/rpm/slapos.spec.end.in
templates/rpm/slapos.spec.end.in
+15
-0
No files found.
prepare_slapos_build.sh
View file @
2a1907ef
...
...
@@ -42,22 +42,9 @@ function spec_generation
# Replace version/release/etc… informations in base spec file
sed
$VERSION_REGEX
$RPM_DIRECTORY
/slapos.spec.base.in
>
$SLAPOS_SPEC
# Post scriplet generation
echo
"%post"
>>
$SLAPOS_SPEC
# Scriplet insertion
cat
$RE6STNET_SCRIPT
>>
$SLAPOS_SPEC
cat
$RPM_DIRECTORY
/post.sh
>>
$SLAPOS_SPEC
# Preun scriplet generation
echo
"
%preun"
>>
$SLAPOS_SPEC
cat
$RPM_DIRECTORY
/preun.sh
>>
$SLAPOS_SPEC
# Postun scriplet generation
echo
"
%postun"
>>
$SLAPOS_SPEC
cat
$RPM_DIRECTORY
/postun.sh
>>
$SLAPOS_SPEC
echo
"
"
>>
$SLAPOS_SPEC
cat
$RPM_DIRECTORY
/slapos.spec.end.in
>>
$SLAPOS_SPEC
}
function
prepare_deb_packaging
...
...
templates/rpm/slapos.spec.base.in
View file @
2a1907ef
...
...
@@ -93,3 +93,5 @@ mkdir -p $RPM_BUILD_ROOT/opt/slapos/log
%files
/
%defattr(-,root,root)
%post
templates/rpm/slapos.spec.end.in
0 → 100644
View file @
2a1907ef
echo """To generate slapos configuration run '#slapos node register'"""
if [ -f /bin/systemctl ]; then
systemctl enable slapos-node.service
systemctl start slapos-node.service
fi
%preun
if [ -f /bin/systemctl ]; then
systemctl stop slapos-node.service
fi
%postun
if [ -f /bin/systemctl ]; then
systemctl restart slapos-node.service
fi
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