ldap-python-webui/start.sh

19 lines
446 B
Bash
Raw Normal View History

2023-11-16 13:17:59 +01:00
##############################
## Erabilera: ##
## sudo chmod +x start.sh ##
## ./start.sh $UID ##
##############################
2023-04-17 05:26:22 +02:00
#!/bin/bash
2023-04-20 11:55:17 +02:00
if [ ! -f settings.ini ]; then
2023-04-18 17:17:27 +02:00
cp settings.ini.example settings.ini
fi
2023-04-20 11:55:17 +02:00
if [[ $# -gt 0 ]]; then
UID_=$1
echo $UID_
2023-11-16 13:17:59 +01:00
export LDAP_ADMIN_PASSWORD=admin
export LDAP_READONLY_PASSWORD=readonly
2023-04-20 11:55:17 +02:00
fi
uwsgi --http :9090 --enable-threads --uid $UID_ --wsgi-file app.py