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

Last change on this file since 1414 was 1414, checked in by ezyang, 13 years ago
Merged in changes from trunk --- Merging r1262 through r1413 into 'deploy/bin': U deploy/bin/django C deploy/bin/rails > Resolved by accepting working copy --- Merging r1221 through r1413 into '.': U sql/bin/get-password U sql/bin/save-password U doc/tickets/rt.txt U doc/tickets/cnames.txt U bin/fix-php-ini C bin/scripts-rails > Resolved by accepting working copy Skipped 'bin/for-each-server' U bin U sbin/parallel-find.pl U sbin/commit-email.pl U sbin/commit-zephyr Summary of conflicts: Tree conflicts: 2 Skipped paths: 1
  • Property svn:executable set to *
File size: 374 bytes
Line 
1#!/bin/sh
2
3mkdir $lroot/.sql 2>/dev/null
4fs sa $lroot/.sql system:anyuser none
5fs sa $lroot/.sql system:authuser none
6fs sa $lroot/.sql daemon.scripts write
7fs sa $lroot/.sql daemon.sql write
8rm -f $lroot/.sql/my.cnf $lroot/.my.cnf
9
10echo "[client]
11host=sql.mit.edu
12user=$sqluser
13password=$sqlpass" > $lroot/.sql/my.cnf
14
15ln -nfs $lroot/.sql/my.cnf $lroot/.my.cnf 2>/dev/null
Note: See TracBrowser for help on using the repository browser.