#!/bin/sh if [ $(id -u) != 0 ] ; then echo "You must be root to run this, please enter passwd" exec su -c "$0 $1" fi su -s /bin/sh gforge -c psql gforge <<-FIN ALTER TABLE users ALTER COLUMN shell SET DEFAULT '$1'; FIN