initial commit of a *whole bunch* of old Egressive shell scripts, used to make many people redundant.

This commit is contained in:
Dave Lane 2016-03-16 13:43:31 +13:00
commit 43e0f5b59e
329 changed files with 31937 additions and 0 deletions

33
egmakedbs/egcreatemycnf Executable file
View file

@ -0,0 +1,33 @@
#!/bin/sh
usage() {
cat <<EOT
Usage: `basename $0` filename hostname username password
EOT
}
if [ $# -ne 4 ] ; then
usage
exit 1
fi
filename=$1
host=$2
user=$3
password=$4
if [ -e "$filename" ] ; then
echo "Refusing to overwrite $filename" >&2
fi
umask 077
cat <<EOT > $filename
[client]
host=$host
user=$user
password=$password
EOT