CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/scripts/make-user-admin
Views: 687
#!/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