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
530b813c
Commit
530b813c
authored
Aug 21, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solved problem due to obs checking post script
parent
cb01986f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
templates/slapos.spec.in
templates/slapos.spec.in
+4
-3
No files found.
templates/slapos.spec.in
View file @
530b813c
...
@@ -95,16 +95,17 @@ cp $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+0/template/sla
...
@@ -95,16 +95,17 @@ cp $RPM_BUILD_DIR/slapos-node_%{unmangled_version}+%{slapversion}+0/template/sla
%post
%post
echo """To generate slapos configuration run '#slapos node register'"""
echo """To generate slapos configuration run '#slapos node register'"""
if [
"$(id -u)" = "0"
]; then
if [
-f /bin/systemctl
]; then
systemctl enable slapos-node.service
systemctl enable slapos-node.service
systemctl start slapos-node.service
fi
fi
%preun
%preun
if [
"$(id -u)" = "0"
]; then
if [
-f /bin/systemctl
]; then
systemctl stop slapos-node.service
systemctl stop slapos-node.service
fi
fi
%postun
%postun
if [
"$(id -u)" = "0"
]; then
if [
-f /bin/systemctl
]; then
systemctl restart slapos-node.service
systemctl restart slapos-node.service
fi
fi
\ No newline at end of file
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