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
Nicolas Wavrant
slapos.package
Commits
1509e510
Commit
1509e510
authored
Jun 10, 2013
by
Vivien Alger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
End of file 4th try
parent
440042bd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
prepare_slapos_build.sh
prepare_slapos_build.sh
+11
-7
templates/rpm/post
templates/rpm/post
+1
-1
templates/rpm/postun
templates/rpm/postun
+1
-1
templates/rpm/preun
templates/rpm/preun
+1
-1
No files found.
prepare_slapos_build.sh
View file @
1509e510
...
...
@@ -48,12 +48,16 @@ function spec_generation
cat
$RPM_DIRECTORY
/post
>>
$SLAPOS_SPEC
# Preun scriplet generation
echo
"%preun"
>>
$SLAPOS_SPEC
echo
"
%preun"
>>
$SLAPOS_SPEC
cat
$RPM_DIRECTORY
/preun
>>
$SLAPOS_SPEC
# Postun scriplet generation
echo
"%postun"
>>
$SLAPOS_SPEC
echo
"
%postun"
>>
$SLAPOS_SPEC
cat
$RPM_DIRECTORY
/postun
>>
$SLAPOS_SPEC
echo
"
"
>>
$SLAPOS_SPEC
}
function
prepare_deb_packaging
...
...
@@ -119,22 +123,22 @@ if [ ! -d "$CURRENT_DIRECTORY/$SLAPOS_DIRECTORY" ]; then
fi
# Prepare Makefile and offline script
prepare_template_files
#
prepare_template_files
# Prepare Download Cache for SlapOS
prepare_download_cache
#
prepare_download_cache
# Prepare tarball
prepare_tarball
#
prepare_tarball
# Generate spec file
spec_generation
# Prepare deb packaging
prepare_deb_packaging
#
prepare_deb_packaging
# Upload to obs
obs_upload
#
obs_upload
# Save current version
echo
"
$RECIPE_VERSION
"
>
$CURRENT_DIRECTORY
/slapos-recipe-version
...
...
templates/rpm/post
View file @
1509e510
...
...
@@ -2,4 +2,4 @@ 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
fi
\ No newline at end of file
templates/rpm/postun
View file @
1509e510
if [ -f /bin/systemctl ]; then
systemctl restart slapos-node.service
fi
fi
\ No newline at end of file
templates/rpm/preun
View file @
1509e510
if [ -f /bin/systemctl ]; then
systemctl stop 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