Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # update staffs to superusers for t6dev
  4.  
  5. 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');"
  6.  
  7. sudo -u postgres psql -d tendenci_site -c "$sql"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement