Skip to content
Snippets Groups Projects
Commit c5096a04 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

add initial file VERSION

parent fd5332ae
Branches
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ mkdir -p /usr/local/share/xml-validation ...@@ -41,7 +41,7 @@ mkdir -p /usr/local/share/xml-validation
cd /usr/local/share/xml-validation cd /usr/local/share/xml-validation
curl --silent --output - \ curl --silent --output - \
https://gitlab1.ptb.de/niepra01/xml-validation/-/archive/master/xml-validation-master.tar \ https://gitlab1.ptb.de/niepra01/xml-validation/-/archive/master/xml-validation-master.tar \
| tar xf - --strip-components 1 # only once | tar xf - --strip-components=1 # only once
python3 -m venv . python3 -m venv .
source bin/activate source bin/activate
pip3 install pip-tools pip3 install pip-tools
...@@ -50,8 +50,8 @@ chown -R nobody.nobody ../xml-validation ...@@ -50,8 +50,8 @@ chown -R nobody.nobody ../xml-validation
systemctl daemon-reload # if already exist systemctl daemon-reload # if already exist
systemctl link $PWD/xml-validation.service systemctl link $PWD/xml-validation.service
systemctl enable xml-validation.service # make permanent systemctl enable xml-validation.service # make permanent
systemctl start xml-validation.service # running? systemctl start xml-validation.service
systemctl status xml-validation.service systemctl status xml-validation.service # running?
journalctl -f --unit xml-validation.service # run-time check journalctl -f --unit xml-validation.service # run-time check
``` ```
......
0.7.1
...@@ -28,7 +28,7 @@ def update(): ...@@ -28,7 +28,7 @@ def update():
###pprint(req) ###pprint(req)
tarball_url = req['repository']['homepage'] + '/-/archive/master/' + \ tarball_url = req['repository']['homepage'] + '/-/archive/master/' + \
req['repository']['name'] + '-master.tar' req['repository']['name'] + '-master.tar'
version = utils.get_version() version = str(utils.get_version())
print(tarball_url) print(tarball_url)
with open('./LOG', 'a') as f: with open('./LOG', 'a') as f:
print(datetime.now().strftime("[%Y-%m-%d %H:%M:%S] " + version), file=f) print(datetime.now().strftime("[%Y-%m-%d %H:%M:%S] " + version), file=f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment