Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:naemon
thruk
update.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File update.sh of Package thruk
#!/bin/bash LASTTAG=$(curl -s 'https://github.com/sni/Thruk/tags/'|grep -Eo '/tag/(v[0-9].[0-9.]{1,6})' | sed -e 's#/tag/##g' |sort -r|head -n1 | tr -d 'v') echo "updating to v${LASTTAG}" osc rm thruk-*.tar.gz rm -f thruk-*.tar.gz wget "https://download.thruk.org/pkg/v${LASTTAG}/src/thruk-${LASTTAG}.tar.gz" gunzip thruk-*.tar.gz tar -vf thruk-*.tar --wildcards --delete thruk-\*/debian/source/format gzip -9 thruk-*.tar osc add thruk-*.tar.gz sed -i _service -e 's#/pkg/v.*/src/thruk-.*<#/pkg/v'${LASTTAG}'/src/thruk-'${LASTTAG}'.tar.gz<#g' osc add _service osc status
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor