debian: rename from portail-admin to hobo
This commit is contained in:
parent
5c0399b2d8
commit
d89c55f23f
|
@ -1,4 +1,4 @@
|
|||
portail-admin (0.1-1) unstable; urgency=low
|
||||
hobo (0.1-1) unstable; urgency=low
|
||||
|
||||
* source package automatically created by stdeb 0.6.0+git
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
Source: portail-admin
|
||||
Source: hobo
|
||||
Maintainer: Frederic Peters <fpeters@entrouvert.com>
|
||||
Section: python
|
||||
Priority: optional
|
||||
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 7)
|
||||
Standards-Version: 3.9.1
|
||||
|
||||
Package: portail-admin
|
||||
Package: hobo
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, ${python:Depends}, python-django, python-gadjo,
|
||||
python-entrouvert, python-allauth-a2-provider, python-django-south
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
etc/portail-admin
|
||||
usr/lib/portail-admin
|
||||
var/lib/portail-admin/media
|
||||
var/lib/portail-admin/static
|
||||
var/run/portail-admin
|
||||
var/log/portail-admin
|
||||
etc/hobo
|
||||
usr/lib/hobo
|
||||
var/lib/hobo/media
|
||||
var/lib/hobo/static
|
||||
var/run/hobo
|
||||
var/log/hobo
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: portail-admin
|
||||
# Provides: hobo
|
||||
# Required-Start: $network $local_fs
|
||||
# Required-Stop:
|
||||
# Default-Start: 2 3 4 5
|
||||
|
@ -13,7 +13,7 @@
|
|||
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
DESC="Portail admin"
|
||||
NAME=portail-admin
|
||||
NAME=hobo
|
||||
DAEMON=/usr/bin/gunicorn
|
||||
RUN_DIR=/var/run/$NAME
|
||||
PIDFILE=$RUN_DIR/$NAME.pid
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
debian/portail-admin.conf /etc/portail-admin
|
||||
debian/nginx-example.conf /etc/portail-admin
|
||||
debian/portail-admin-manage /usr/bin
|
||||
debian/hobo.conf /etc/hobo
|
||||
debian/nginx-example.conf /etc/hobo
|
||||
debian/hobo-manage /usr/bin
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
server {
|
||||
listen 443;
|
||||
server_name portail-admin.dev.entrouvert.org;
|
||||
server_name hobo.dev.entrouvert.org;
|
||||
|
||||
ssl on;
|
||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
|
||||
access_log /var/log/nginx/portail-admin.fr-access.log combined;
|
||||
error_log /var/log/nginx/portail-admin.fr-error.log;
|
||||
access_log /var/log/nginx/hobo.fr-access.log combined;
|
||||
error_log /var/log/nginx/hobo.fr-error.log;
|
||||
|
||||
location /static {
|
||||
alias /var/lib/portail-admin/static;
|
||||
alias /var/lib/hobo/static;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://unix:/var/run/portail-admin/portail-admin.sock;
|
||||
proxy_pass http://unix:/var/run/hobo/hobo.sock;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-SSL on;
|
||||
proxy_set_header X-Forwarded-Protocol ssl;
|
||||
|
@ -24,17 +24,17 @@ server {
|
|||
|
||||
server {
|
||||
listen 80;
|
||||
server_name portail-admin.dev.fr;
|
||||
server_name hobo.dev.fr;
|
||||
|
||||
access_log /var/log/nginx/portail-admin.dev.fr-access.log combined;
|
||||
error_log /var/log/nginx/portail-admin.dev.fr-error.log;
|
||||
access_log /var/log/nginx/hobo.dev.fr-access.log combined;
|
||||
error_log /var/log/nginx/hobo.dev.fr-error.log;
|
||||
|
||||
location /static {
|
||||
alias /var/lib/portail-admin/static;
|
||||
alias /var/lib/hobo/static;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://unix:/var/run/portail-admin/portail-admin.sock;
|
||||
proxy_pass http://unix:/var/run/hobo/hobo.sock;
|
||||
proxy_set_header Host $http_host;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$(whoami)" != "portail-admin" ]; then
|
||||
echo "You must run this script with portail-admin user"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -f /etc/portail-admin/portail-admin.conf ]; then
|
||||
. /etc/portail-admin/portail-admin.conf
|
||||
fi
|
||||
|
||||
/usr/bin/portail-admin-manage.py $*
|
|
@ -1,39 +0,0 @@
|
|||
# comment for production
|
||||
export DEBUG='yes'
|
||||
|
||||
# Database configuration
|
||||
# export DATABASE_ENGINE='django.db.backends.sqlite3'
|
||||
# export DATABASE_NAME='/var/lib/compte-orleans/compte-orleans.db'
|
||||
# simu/prepro/prod
|
||||
export DATABASE_ENGINE='django.db.backends.postgresql_psycopg2'
|
||||
export DATABASE_NAME='portail_admin'
|
||||
|
||||
# Static root directory
|
||||
export STATIC_ROOT='/var/lib/portail-admin/static'
|
||||
|
||||
# Log root directory
|
||||
export LOG_ROOT='/var/log/portail-admin/portail-admin.log'
|
||||
|
||||
# secret to CHANGE
|
||||
export SECRET_KEY='changeme'
|
||||
|
||||
# We are behind a reverse proxy so we accept every hosts
|
||||
export ALLOWED_HOSTS='*'
|
||||
|
||||
# You MUST set RSA key here
|
||||
# you can generate this key with this commands :
|
||||
# openssl genrsa -out saml.key 2048
|
||||
# openssl rsa -in saml.key -pubout -out saml.pub
|
||||
#export SAML_SIGNATURE_PUBLIC_KEY=""
|
||||
#export SAML_SIGNATURE_PRIVATE_KEY=""
|
||||
|
||||
# Enables some features
|
||||
export IDP_SAML2='yes'
|
||||
#export IDP_OPENID='yes'
|
||||
#export IDP_CAS='yes'
|
||||
#export AUTH_SAML2='yes'
|
||||
#export AUTH_OPENID='yes'
|
||||
#export AUTH_SSL='yes'
|
||||
#export AUTH_OATH='yes'
|
||||
|
||||
export MULTITENANT_MODE=0
|
|
@ -1,11 +1,11 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Postinst script for portail-admin
|
||||
# Postinst script for hobo
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
USER=portail-admin
|
||||
USER=hobo
|
||||
GROUP=$USER
|
||||
HOME=/var/lib/$USER
|
||||
SCRIPTNAME="/usr/bin/$USER-manage"
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
mv debian/portail-admin/usr/bin/manage.py debian/portail-admin/usr/bin/portail-admin-manage.py
|
||||
mv debian/hobo/usr/bin/manage.py debian/hobo/usr/lib/hobo/manage.py
|
||||
|
|
Loading…
Reference in New Issue