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

change the installation steps; better pretty script

parent f90264d5
No related branches found
No related tags found
No related merge requests found
......@@ -43,22 +43,26 @@ Do the following steps with root permission on the server installation:
```shell
mkdir -p /usr/local/share/vl-dcc
cd /usr/local/share/vl-dcc
curl --silent --output - \
curl --silent --insecure --output - \
https://gitlab1.ptb.de/niepra01/vl-dcc/-/archive/master/vl-dcc-master.tar \
| tar xf - --strip-components=1 # only once
| tar xf - --strip-components=1 # only once
sudo apt install python3-pip # openSUSE: sudo zypper in python3-pip
python3 -m venv .
source bin/activate
pip3 install pip-tools
pip-compile
chown -R nobody.nobody ../vl-dcc
systemctl daemon-reload # if already exist
pip-compile --output-file=requirements.txt requirements.in
pip3 install -r requirements.txt
chown -R nobody.nogroup $PWD # openSUSE: chown -R nobody.nobody $PWD
systemctl daemon-reload # if already exist
systemctl link $PWD/vl-dcc.service
systemctl enable vl-dcc.service # make permanent
systemctl enable vl-dcc.service # make permanent
systemctl start vl-dcc.service
systemctl status vl-dcc.service # running?
journalctl -f --unit vl-dcc.service # run-time check
systemctl status vl-dcc.service # running?
journalctl -f --unit vl-dcc.service # run-time check
```
<!-- TODO: "setup-py" weg, stattdessen: "requirements.in" -->
## api
### vl-dcc/<cer_doc_id> (GET)
......
......@@ -2,15 +2,15 @@
import sys
from trans import pretty_c14n
def error_exit(x):
print('ERROR: ', str(x), file=sys.stderr)
sys.exit(1)
if len(sys.argv) < 3:
error_exit('too few arguments')
if sys.argv[1] == sys.argv[2]:
error_exit('"infile" and "outfile" must be different')
def error_exit(x):
print('ERROR: ', str(x), file=sys.stderr)
sys.exit(1)
infile = sys.argv[1]
outfile = sys.argv[2]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment