Skip to content

Instantly share code, notes, and snippets.

@jennyq
Created March 2, 2015 23:58
Show Gist options
  • Save jennyq/0e9dd488caca7c3bf24b to your computer and use it in GitHub Desktop.
Save jennyq/0e9dd488caca7c3bf24b to your computer and use it in GitHub Desktop.
#!/bin/bash
# update staffs to superusers for t6dev
sql="update auth_user set is_superuser=true where is_staff=true and is_superuser=false and (email not like '%@theassociaton.com' and email not like '%@theassociation.com');"
sudo -u postgres psql -d tendenci_site -c "$sql"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment