projects
/
fusionforge
/
fusionforge.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove stripcslashes
[fusionforge/fusionforge.git]
/
src
/
utils
/
change_default_shell
1
#!/bin/sh
2
if [ $(id -u) != 0 ] ; then
3
echo "You must be root to run this, please enter passwd"
4
exec su -c "$0 $1"
5
fi
6
7
su -s /bin/sh gforge -c psql gforge <<-FIN
8
ALTER TABLE users ALTER COLUMN shell SET DEFAULT '$1';
9
FIN