source: branches/locker-dev/locker/sql/bin/save-password @ 2075

Last change on this file since 2075 was 2074, checked in by andersk, 13 years ago
Merge r2072:2073 from trunk/locker to branches/locker-dev/locker This is effectively a noop, but contains a different conflict resolution for the svn:mergeinfo property on locker/bin/crontab in an attempt to restore sanity and avoid future conflicts. Ha.
File size: 367 bytes
RevLine 
[131]1#!/bin/sh
2
3mkdir $lroot/.sql 2>/dev/null
4fs sa $lroot/.sql system:anyuser none
[157]5fs sa $lroot/.sql system:authuser none
[131]6fs sa $lroot/.sql daemon.scripts write
[382]7fs sa $lroot/.sql daemon.sql write
[131]8rm -f $lroot/.sql/my.cnf $lroot/.my.cnf
9
[1414]10echo "[client]
[131]11host=sql.mit.edu
12user=$sqluser
13password=$sqlpass" > $lroot/.sql/my.cnf
14
[1439]15ln -nfs .sql/my.cnf $lroot/.my.cnf 2>/dev/null
Note: See TracBrowser for help on using the repository browser.