20 lines
704 B
Bash
Executable File
20 lines
704 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# install unrelease python modules
|
|
pip3 install alembic-autogenerate-enums==0.0.2 asyncpool==1.0 certsrv==2.1.1 cryptography==3.1.1 dnspython3==1.15.0 dyn==1.8.1 flask-replicated==1.4 javaobj-py3==0.4.0.1 jsonlines==1.2.0 logmatic-python==0.1.7 marshmallow==2.20.4 pycryptodomex==3.9.7 pyjks==20.0.0 raven[flask]==6.10.0 twofish==0.3.0
|
|
|
|
mkdir -p /var/log/lemur/
|
|
chown lemur: /var/log/lemur/
|
|
|
|
# EOLE-DB change file right to 400
|
|
chmod 640 /etc/lemur/*
|
|
chgrp lemur /etc/lemur/*
|
|
systemctl start postgresql.service
|
|
su - lemur -s /bin/bash -c "lemur --config=/etc/lemur/lemur.conf.py init --password $(CreoleGet lemur_admin_password)"
|
|
systemctl stop postgresql.service
|
|
rm -f *.log
|
|
|
|
exit 0
|