From c5096a04fb310058867db1d6970cb1c22174f62b Mon Sep 17 00:00:00 2001 From: Rolf Niepraschk <Rolf.Niepraschk@ptb.de> Date: Mon, 17 Aug 2020 15:07:03 +0200 Subject: [PATCH] add initial file VERSION --- README.md | 6 +++--- VERSION | 1 + server.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 VERSION diff --git a/README.md b/README.md index 741cfed..ca44d04 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ mkdir -p /usr/local/share/xml-validation cd /usr/local/share/xml-validation curl --silent --output - \ 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 . source bin/activate pip3 install pip-tools @@ -50,8 +50,8 @@ chown -R nobody.nobody ../xml-validation systemctl daemon-reload # if already exist systemctl link $PWD/xml-validation.service systemctl enable xml-validation.service # make permanent -systemctl start xml-validation.service # running? -systemctl status xml-validation.service +systemctl start xml-validation.service +systemctl status xml-validation.service # running? journalctl -f --unit xml-validation.service # run-time check ``` diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..39e898a --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.7.1 diff --git a/server.py b/server.py index 5992f6b..cf19bd9 100644 --- a/server.py +++ b/server.py @@ -28,7 +28,7 @@ def update(): ###pprint(req) tarball_url = req['repository']['homepage'] + '/-/archive/master/' + \ req['repository']['name'] + '-master.tar' - version = utils.get_version() + version = str(utils.get_version()) print(tarball_url) with open('./LOG', 'a') as f: print(datetime.now().strftime("[%Y-%m-%d %H:%M:%S] " + version), file=f) -- GitLab