diff --git a/smartgears/ckan_connector/templates/ckan-connector-fixer.sh.j2 b/smartgears/ckan_connector/templates/ckan-connector-fixer.sh.j2 index ca25bded..9c0481b3 100644 --- a/smartgears/ckan_connector/templates/ckan-connector-fixer.sh.j2 +++ b/smartgears/ckan_connector/templates/ckan-connector-fixer.sh.j2 @@ -47,8 +47,8 @@ cd /usr/lib/ckan/default/src/ckan if [ "$CKAN_CREATE_USER" == "True" ] ; then # Create the admin user 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 +paster sysadmin -c $CK_INI add $CK_ADMIN # Get the admin key echo "update \"user\" set state = 'active' where name = '${CK_ADMIN}';" > $SQL_FILE