diff --git a/deploy/post-install-script.sh b/deploy/post-install-script.sh
index ff1cd610ebcbf4d39b9e6bd97b7ad3f2a5dd7156..800b763a823b90aa7891368f34616886178f60c5 100755
--- a/deploy/post-install-script.sh
+++ b/deploy/post-install-script.sh
@@ -676,13 +676,13 @@ printf "\n\n"
 cassandra_forms
 get_x_authenticated_token
 create_organisation
-assign_roles
 create_master_categories
 create_default_licenses
 create_default_channel_license
 create_other_categories
 system_settings
 create_users
+assign_roles
 create_framework
 create_framework_categories
 create_framework_terms