From 186fe446cc0ab024423443e191c6cb56d9b8867c Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 2 Aug 2018 16:05:09 +0200 Subject: [PATCH] Fix the ckan_connector_fixer. It is not interactive anymore. --- .../templates/ckan-connector-fixer.sh.j2 | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/smartgears/ckan_connector/templates/ckan-connector-fixer.sh.j2 b/smartgears/ckan_connector/templates/ckan-connector-fixer.sh.j2 index 028f791..ca25bde 100644 --- a/smartgears/ckan_connector/templates/ckan-connector-fixer.sh.j2 +++ b/smartgears/ckan_connector/templates/ckan-connector-fixer.sh.j2 @@ -46,15 +46,8 @@ cd /usr/lib/ckan/default/src/ckan if [ "$CKAN_CREATE_USER" == "True" ] ; then # Create the admin user - paster sysadmin add $CK_ADMIN -c $CK_INI << EOF -y - -$CK_ADMIN_PWD -$CK_ADMIN_PWD - - -EOF - + paster user -c $CK_INI add $CK_ADMIN password=$CK_ADMIN_PWD email=ckan_admin@d4science.org + paster -c $CK_INI sysadmin add $CK_ADMIN fi # Get the admin key