forked from ISTI-ansible-roles/ansible-roles
Fix the ckan-connector-fixer script, the ckan_connector user did not have admin rights.
This commit is contained in:
parent
7a67ba48d2
commit
c35ab07597
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue