Commit 6a78310f authored by Jens Langhammer's avatar Jens Langhammer

correctly install ldap dependencies

parent 1fd2e537
Pipeline #3381 passed with stage
in 4 minutes and 47 seconds
......@@ -9,6 +9,6 @@ Standards-Version: 3.9.6
Package: pyazo
Architecture: amd64
Recommends: mysql-server, redis-server
Pre-Depends: adduser
Pre-Depends: adduser, libldap2-dev, libsasl2-dev
Depends: python3 (>= 3.5) | python3.6 | python3.7, python3-pip, dbconfig-mysql | dbconfig-no-thanks, ${misc:Depends}, libmagic1
Description: Image Hosting server written in Python.
......@@ -18,8 +18,8 @@ if [ -z "`getent passwd pyazo`" ]; then
echo " * Creating user and group pyazo..."
adduser --quiet --system --home /usr/share/pyazo --shell /bin/false --ingroup pyazo --disabled-password --disabled-login --gecos "pyazo User" pyazo >> /var/log/pyazo/pyazo.log 2>&1
fi
echo " * Updating pillow install"
python3 -m pip install --target=/usr/share/pyazo/vendor/ --no-cache-dir --upgrade --force-reinstall pillow >> /var/log/pyazo/pyazo.log 2>&1
echo " * Updating binary packages (pillow, pyldap)"
python3 -m pip install --target=/usr/share/pyazo/vendor/ --no-cache-dir --upgrade --force-reinstall pillow pyldap >> /var/log/pyazo/pyazo.log 2>&1
if [ ! -f '/etc/pyazo/secret_key' ]; then
echo " * Generating Secret Key"
python3 -c 'import random; result = "".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)]); print(result)' > /etc/pyazo/secret_key 2> /dev/null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment