diff --git a/Makefile b/Makefile index 606f0f9..21f8177 100644 --- a/Makefile +++ b/Makefile @@ -41,11 +41,13 @@ install-dirs: @$(INSTALL_DIR) $(DESTDIR)$(pck_confdir) @$(INSTALL_DIR) $(DESTDIR)$(pck_datadir) @$(INSTALL_DIR) $(DESTDIR)$(pck_statedir) + @$(INSTALL_DIR) $(DESTDIR)$(unitdir) install-data: install-dirs cp main.cfg.example $(DESTDIR)$(pck_confdir)/main.cfg cp -a app $(DESTDIR)$(pck_datadir)/ $(INSTALL_DATA) requirements.txt $(DESTDIR)$(pck_datadir)/requirements.txt + $(INSTALL_DATA) webdist.service $(DESTDIR)$(unitdir)/webdist.service install: \ install-dirs \ diff --git a/app/run.sh b/app/run.sh index 2d72552..adfee93 100755 --- a/app/run.sh +++ b/app/run.sh @@ -1,2 +1,2 @@ #!/bin/bash -/var/webdist/env/bin/flask --app /usr/share/webdist/app/webdist.py run --host=0.0.0.0 +/var/lib/webdist/env/bin/flask --app /usr/share/webdist/app/webdist.py run --host=0.0.0.0 diff --git a/app/templates/index.html b/app/templates/index.html index 2b6968a..2e7ca09 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -15,7 +15,7 @@

Welcome To WebDist

- Home | Latest packages | Query packages + Home | Latest packages {% block body %} diff --git a/main.cfg.example b/main.cfg.example index 47eec8d..58c8038 100644 --- a/main.cfg.example +++ b/main.cfg.example @@ -2,5 +2,4 @@ # WebDist main configuration file # REPO_BASEDIR = "/var/webbuild/db/" -#SEARCH_REPOS = [ 'devel', 'devel-makedist', 'devel-autodist', 'devel-kernel', 'devel-misc', 'devel-future' ] SEARCH_REPOS = [ 'devel', 'devel-makedist', 'devel-autodist' ]