source: locker/sql/bin/save-password @ 131

Last change on this file since 131 was 131, checked in by jbarnold, 18 years ago
added sql scripts
  • Property svn:executable set to *
File size: 299 bytes
Line 
1#!/bin/sh
2
3mkdir $lroot/.sql 2>/dev/null
4fs sa $lroot/.sql system:anyuser none
5fs sa $lroot/.sql daemon.scripts write
6rm -f $lroot/.sql/my.cnf $lroot/.my.cnf
7
8echo "[mysql]
9host=sql.mit.edu
10user=$sqluser
11password=$sqlpass" > $lroot/.sql/my.cnf
12
13ln -nfs $lroot/.sql/my.cnf $lroot/.my.cnf 2>/dev/null
Note: See TracBrowser for help on using the repository browser.