Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/scripts/make-user-admin
Views: 275
#!/usr/bin/env bash
set -e

if [[ $# -ne 1 ]] ; then
    echo "$0 [email protected]"
    exit 1
fi

echo "update accounts set groups='{admin}' where email_address='$1'" | psql