Skip to content

Commit

Permalink
Merge pull request #588 from LibrIT/debian11
Browse files Browse the repository at this point in the history
Debian11
  • Loading branch information
Raphux committed Sep 11, 2022
2 parents 9c18f57 + 1f31ea6 commit 8beac20
Show file tree
Hide file tree
Showing 59 changed files with 371 additions and 2,002 deletions.
21 changes: 0 additions & 21 deletions Dockerfile

This file was deleted.

25 changes: 0 additions & 25 deletions Dockerfile-Debian9

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Goals:
* Provide a connexions history
* Provide command and actions history (by users)

Test the 5 minutes Debian installation :
Test the 5 minutes Debian 11 installation :
```
bash <(curl -s https://raw.githubusercontent.com/librit/passhport/master/tools/passhport-install-script-debian.sh)
bash <(curl -s https://raw.githubusercontent.com/librit/passhport/master/tools/install/install_debian_11.sh)
```
5 changes: 0 additions & 5 deletions passhportd/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
Expand Down
5 changes: 0 additions & 5 deletions passhportd/app/models.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

from app import db
from .models_mod import (user, target, usergroup, targetgroup, logentry,
exttargetaccess, passentry)
Expand Down
5 changes: 0 additions & 5 deletions passhportd/app/models_mod/logentry.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

from app import app, db
from app.models_mod import target,usergroup,targetgroup,user

Expand Down
5 changes: 0 additions & 5 deletions passhportd/app/models_mod/targetgroup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

from app import db, models_mod

# Table to handle the self-referencing many-to-many relationship
Expand Down
5 changes: 0 additions & 5 deletions passhportd/app/models_mod/usergroup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

from app import db, models_mod
from app.models_mod import target,targetgroup

Expand Down
5 changes: 0 additions & 5 deletions passhportd/app/tests/test_models_mod/test_target.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

import os

from nose.tools import *
Expand Down
5 changes: 0 additions & 5 deletions passhportd/app/tests/test_models_mod/test_user.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

import os

from nose.tools import *
Expand Down
4 changes: 0 additions & 4 deletions passhportd/app/views_mod/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

import flask
from app import app

Expand Down
5 changes: 0 additions & 5 deletions passhportd/app/views_mod/targetgroup/targetgroup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

from flask import request
from sqlalchemy import exc
from sqlalchemy.orm import sessionmaker
Expand Down
5 changes: 0 additions & 5 deletions passhportd/app/views_mod/usergroup/usergroup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

from flask import request
from sqlalchemy import exc
from sqlalchemy.orm import sessionmaker
Expand Down
5 changes: 0 additions & 5 deletions passhportd/db_create.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/env python
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

from migrate.versioning import api
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
Expand Down
5 changes: 0 additions & 5 deletions passhportd/passhportd
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/home/passhport/passhport-run-env/bin/python
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

import os,ssl
from config import SQLALCHEMY_DATABASE_DIR
from config import SSL_CERTIFICAT
Expand Down
5 changes: 0 additions & 5 deletions passhportd/upgrade-db.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
#!/usr/bin/env python
# -*-coding:Utf-8 -*-

# Compatibility 2.7-3.4
from __future__ import absolute_import
from __future__ import unicode_literals

from config import SQLALCHEMY_DATABASE_DIR

"""Server side using flask"""
Expand Down
56 changes: 41 additions & 15 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,42 @@
Flask_Migrate==2.5.2
itsdangerous==1.1.0
alembic==1.1.0
SQLAlchemy==1.3.7
cryptography==3.3.2
tabulate==0.8.3
Flask==1.0.4
requests==2.21.0
Flask_SQLAlchemy==2.4.0
psutil==5.6.7
ldap3==2.6
sqlalchemy_migrate==0.12.0
wheel
alembic==1.8.1
certifi==2022.6.15.1
cffi==1.15.1
chardet==5.0.0
charset-normalizer==2.1.1
click==8.1.3
cryptography==38.0.1
decorator==5.1.1
docopt==0.6.2
sshpubkeys==3.1.0
Jinja2==3.0.3
Werkzeug==2.0.3
ecdsa==0.18.0
Flask==2.2.2
Flask-Migrate==3.1.0
Flask-SQLAlchemy==2.5.1
greenlet==1.1.3
idna==3.3
importlib-metadata==4.12.0
itsdangerous==2.1.2
Jinja2==3.1.2
ldap3==2.9.1
Mako==1.2.2
MarkupSafe==2.1.1
pbr==5.10.0
pkg_resources==0.0.0
psutil==5.9.2
psycopg2==2.9.3
psycopg2-binary==2.9.3
pyasn1==0.4.8
pycparser==2.21
python-dateutil==2.8.2
python-editor==1.0.4
requests==2.28.1
six==1.16.0
SQLAlchemy==1.4.41
sqlalchemy-migrate==0.13.0
sqlparse==0.4.2
sshpubkeys==3.3.1
tabulate==0.8.10
Tempita==0.5.2
urllib3==1.26.12
Werkzeug==2.2.2
zipp==3.8.1
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tools/bin/passhportd.wsgi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import sys
sys.path.insert(0, '/home/passhport/passhport/passhportd')

from app import app as application
4 changes: 0 additions & 4 deletions tools/passhweb.wsgi → tools/bin/passhweb.wsgi
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
activate_this = '/home/passhport/passhport-run-env/bin/activate_this.py'
with open(activate_this) as file_:
exec(file_.read(), dict(__file__=activate_this))

import sys
sys.path.insert(0, '/home/passhport/passhport/passhweb')

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tools/crons/garbage-collector.cron
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* * * * * passhport /home/passhport/passhport/tools/bin/garbage-collector.sh > /var/log/passhport/garbage-collector.log
* * * * * passhport sleep 15 && /home/passhport/passhport/tools/bin/garbage-collector.sh >> /var/log/passhport/garbage-collector.log
* * * * * passhport sleep 30 && /home/passhport/passhport/tools/bin/garbage-collector.sh >> /var/log/passhport/garbage-collector.log
* * * * * passhport sleep 45 && /home/passhport/passhport/tools/bin/garbage-collector.sh >> /var/log/passhport/garbage-collector.log
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/passhportd.sh → tools/dev-tools/passhportd.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# WARNING: this script is made for the default automated installation.
# WARNING: this script is made for dev purposes.

# Launch the passhportd in the virtualenv
nohup /home/passhport/passhport-run-env/bin/python /home/passhport/passhport/passhportd/passhportd >> /var/log/passhport/passhportd 2>&1 &
Expand Down
20 changes: 0 additions & 20 deletions tools/docker/docker_switch.sh

This file was deleted.

4 changes: 0 additions & 4 deletions tools/garbage-collector.cron

This file was deleted.

This file was deleted.

0 comments on commit 8beac20

Please sign in to comment.