janpascal / denyhosts_sync

Sync server for denyhosts
GNU Affero General Public License v3.0
14 stars 5 forks source link

Fix base path for static files findout #26

Closed sergey-dryabzhinsky closed 7 years ago

sergey-dryabzhinsky commented 8 years ago

The problem conditions are:

  1. Created deb package with:
    • project files in /usr/share/pyshared/denyhosts_server
    • project static, templates and db files - in /var/lib/denyhosts-server
      1. service is started by start-stop-daemon and workdir in /var/lib/denyhosts-server

So, do check for static base path at first in process workdir, second - in project dir.

janpascal commented 7 years ago

Solved this is a different way in the Debian packaging.