Users using the Tequila login are invited to migrate to gitlab.epfl.ch. This instance will close for Tequila users by May 2020.

Commit 8c907905 authored by Timothée Floure's avatar Timothée Floure

Add systemd unit file to package, put configuration in /etc

parent 079c8ab5
Pipeline #1502 failed with stages
in 5 minutes and 35 seconds
......@@ -8,6 +8,6 @@ Homepage: https://gitlab.gnugen.ch/gnugen/members-management
Package: gnugen-member-management
Architecture: all
Depends: ${misc:Depends}, ${perl:Depends}
Depends: ${misc:Depends}, ${perl:Depends}, uwsgi
Description: Webapp to manage GNU Generation members.
Webapp to manage LDAP accounts and subscriptions of GNU Generation members.
......@@ -14,5 +14,9 @@ override_dh_auto_test:
@echo "Tests are run in a separate CI job"
override_dh_auto_install:
mkdir -p debian/gnugen-member-management/opt/$(PACKAGE_NAME)
mkdir -p debian/gnugen-member-management/opt/$(PACKAGE_NAME) \
debian/gnugen-member-management/etc/$(PACKAGE_NAME) \
debian/gnugen-member-management/lib/systemd/system/
tar --directory debian/$(PACKAGE_NAME)/opt/$(PACKAGE_NAME) --strip-component 1 -x -v -f GnuGeneration-MemberManagement-*.tar.gz
install -m640 config.yml debian/gnugen-member-management/etc/$(PACKAGE_NAME)/config.yml
install -m644 $(PACKAGE_NAME).service debian/gnugen-member-management/lib/systemd/system/$(PACKAGE_NAME).service
[Unit]
Description=Webapp for GNU Generation member management
[Service]
Type=simple
Environment=DANCER_CONFDIR=/etc/gnugen-member-management
Workdir=/opt/gnugen-member-management
ExecStart=/usr/bin/uwsgi --socket /run/gnugen-member-management.sock --psgi /opt/gnugen-member-management/bin/app.pl --env PLACK_ENV=production
[Install]
WantedBy=multi-user.target
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