source: branches/locker-dev/locker/bin/fix-php-ini @ 2364

Last change on this file since 2364 was 1414, checked in by ezyang, 15 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: 888 bytes
Line 
1#!/bin/sh
2
3# This script is meant to help people who have somehow lost their
4# php.ini files.  It is meant to be run in the top level directory
5# of an application once a reasonable php.ini file has been placed
6# there, and will make the symlinks to it in all child directories.
7
8if [ -f php.ini ]; then
9        echo "Creating php.ini symlinks in child directories..."
10        athrun scripts gfind . -mindepth 1 -type d \( -not -name .svn -not -name .git -or -not -prune \) -exec sh -c 'ln -sf "`echo "$1" | sed '\''s,[^/],,g; s,/,../,g'\''`php.ini" "$1/"' -- {} \;
11        echo "Done!"
12else
13        echo "There is no php.ini file in this directory.  You should first"
14        echo "put a valid php.ini file in the top level directory of your"
15        echo "application, then change to that directory, and then run this"
16        echo "script to make the symlinks to your php.ini file from all the"
17        echo "child directories."
18        exit 1
19fi
20
Note: See TracBrowser for help on using the repository browser.