diff --git a/scripts/install b/scripts/install index f9836b6..c2ef704 100644 --- a/scripts/install +++ b/scripts/install @@ -46,8 +46,8 @@ function install_from_sources() $final_path/venv/bin/pip install "pip>=1.5.6" $final_path/venv/bin/pip install gunicorn + echo "django-auth-ldap<1.4" >> $final_path/requirements.txt $final_path/venv/bin/pip install -r $final_path/requirements.txt - $final_path/venv/bin/pip install django-auth-ldap #$final_path/venv/bin/pip install mysqlclient prefix="${path#"/"}/" diff --git a/scripts/remove b/scripts/remove index 98277c9..3a445c1 100644 --- a/scripts/remove +++ b/scripts/remove @@ -15,8 +15,8 @@ DOMAIN=$(ynh_app_setting_get "$APP" domain) # Add tests that stuff actually exists before removing them # Remove mysql table -ynh_psql_drop_user $app ynh_psql_drop_db $app +ynh_psql_drop_user $app # Remove dependencies ynh_remove_app_dependencies diff --git a/sources/patches/app-01-fix-requirements.patch b/sources/patches/app-01-fix-requirements.patch new file mode 100644 index 0000000..b04d28a --- /dev/null +++ b/sources/patches/app-01-fix-requirements.patch @@ -0,0 +1,23 @@ +From 5dbe24ccb81eaca81cbfc608e2aa70528dd3bc2c Mon Sep 17 00:00:00 2001 +From: ljf +Date: Tue, 27 Mar 2018 16:21:00 +0200 +Subject: [PATCH] [fix] requirements + +--- + requirements.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/requirements.txt b/requirements.txt +index 65b8bf8..e57bb95 100644 +--- a/requirements.txt ++++ b/requirements.txt +@@ -1,5 +1,5 @@ + Django>=1.8.17,<1.9 +-psycopg2==2.5.2 ++psycopg2>=2.5.4 + python-ldap==2.4.15 + wsgiref==0.1.2 + python-dateutil==2.2 +-- +2.16.2 +