Created
March 2, 2015 23:58
-
-
Save jennyq/0e9dd488caca7c3bf24b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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