ldap-python-webui/start.sh

22 lines
457 B
Bash
Executable File

#!/bin/bash
##############################
## Erabilera: ##
## sudo chmod +x start.sh ##
## ./start.sh $UID ##
##############################
if [ ! -f settings.ini ]; then
cp settings.ini.example settings.ini
fi
if [[ $# -gt 0 ]]; then
UID_=$1
echo $UID_
else
UID_=$UID
fi
export LDAP_ADMIN_PASSWORD=admin
export LDAP_READONLY_PASSWORD=readonly
uwsgi --http :9090 --enable-threads --uid $UID_ --wsgi-file app.py