etesync-server: use relative path for static_url

Django 3.1 supports relative paths for static_url.
Use it to make it more flexible.
Minor fixes for upgrade:
* ignore-fail-on-non-empty for rmdir /usr/share/etesync-server/etesync_server
* do not stop service (it is stopped already and init file is removed)

Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
This commit is contained in:
Peter Stadler
2020-10-17 21:29:44 +02:00
parent b24b837822
commit edb201b9d4
3 changed files with 3 additions and 5 deletions
@@ -1,7 +1,5 @@
#!/bin/sh
[ "${PKG_UPGRADE}" = "1" ] && /etc/init.d/etesync-server stop
cd /usr/share/etesync-server || exit 1
python3 manage.pyc migrate --noinput || exit 1
+1 -1
View File
@@ -1,6 +1,6 @@
config django 'global'
option static_url '/etesync/static/' # TODO for django 3.1: "static/"
option static_url 'static/'
option debug 'false'
config django 'allowed_hosts'