Fix the ckan-connector-fixer script, the ckan_connector user did not have admin rights.

This commit is contained in:
Andrea Dell'Amico 2018-08-18 13:50:54 +02:00
parent 7a67ba48d2
commit c35ab07597
1 changed files with 1 additions and 1 deletions

View File

@ -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