|
iTx Technologies offre gratuitement
|
||
[Vue sommaire] [Imprimer] [Vue textuelle]
1 #!/bin/sh 2 3 # REPLACE with your PHP5 binary path (example: /usr/local/php5/bin/php ) 4 #MAGE_PEAR_PHP_BIN="php" 5 6 PEAR_PATH="downloader/pearlib" 7 8 # initial setup 9 if test "x$1" = "xmage-setup"; then 10 echo 'Running initial setup...' 11 12 if test "x$2" != "x"; then 13 MAGE_ROOT_DIR="$2" 14 else 15 MAGE_ROOT_DIR="`pwd`" 16 fi 17 18 MAGE_PEAR_ROOT_DIR="$MAGE_ROOT_DIR/$PEAR_PATH" 19 20 $0 config-set bin_dir "$MAGE_PEAR_ROOT_DIR" 21 $0 config-set doc_dir "$MAGE_PEAR_ROOT_DIR/docs" 22 $0 config-set ext_dir "$MAGE_PEAR_ROOT_DIR/ext" 23 $0 config-set php_dir "$MAGE_PEAR_ROOT_DIR/php" 24 $0 config-set cache_dir "$MAGE_PEAR_ROOT_DIR/cache" 25 $0 config-set data_dir "$MAGE_PEAR_ROOT_DIR/data" 26 $0 config-set download_dir "$MAGE_PEAR_ROOT_DIR/download" 27 $0 config-set temp_dir "$MAGE_PEAR_ROOT_DIR/temp" 28 $0 config-set test_dir "$MAGE_PEAR_ROOT_DIR/tests" 29 30 $0 config-set mage_dir "$MAGE_ROOT_DIR" 31 $0 config-set mage_web_dir "$MAGE_ROOT_DIR" 32 $0 config-set mage_etc_dir "$MAGE_ROOT_DIR/app/etc" 33 $0 config-set mage_core_dir "$MAGE_ROOT_DIR/app/code/core" 34 $0 config-set mage_community_dir "$MAGE_ROOT_DIR/app/code/community" 35 $0 config-set mage_local_dir "$MAGE_ROOT_DIR/app/code/local" 36 $0 config-set mage_design_dir "$MAGE_ROOT_DIR/app/design" 37 $0 config-set mage_lib_dir "$MAGE_ROOT_DIR/lib" 38 $0 config-set mage_media_dir "$MAGE_ROOT_DIR/media" 39 $0 config-set mage_test_dir "$MAGE_ROOT_DIR/tests" 40 $0 config-set mage_skin_dir "$MAGE_ROOT_DIR/skin" 41 $0 config-set mage_locale_dir "$MAGE_ROOT_DIR/app/locale" 42 43 $0 config-set preferred_state beta 44 $0 config-set cache_ttl 60 45 46 $0 channel-discover connect.magentocommerce.com/core 47 $0 channel-discover connect.magentocommerce.com/community 48 49 exit 50 fi 51 52 # check that mage pear was initialized 53 if test "x$1" != "xconfig-set" && 54 test "x$1" != "xconfig-get" && 55 test "x$1" != "xconfig-show" && 56 test "x$1" != "xchannel-discover" && 57 test "x`$0 config-get mage_dir`" = "x"; then 58 echo 'Please initialize Magento PEAR installer by running:' 59 echo "$0 mage-setup" 60 exit; 61 fi 62 63 # find which PHP binary to use 64 if test "x$MAGE_PEAR_PHP_BIN" != "x"; then 65 PHP="$MAGE_PEAR_PHP_BIN" 66 else 67 PHP=php 68 fi 69 70 # get default pear dir of not set 71 if test "x$MAGE_PEAR_ROOT_DIR" = "x"; then 72 MAGE_PEAR_ROOT_DIR="`pwd`/$PEAR_PATH" 73 fi 74 75 # look for the right pear include dir 76 if test "x$MAGE_PEAR_INSTALL_DIR" != "x"; then 77 INCDIR=$MAGE_PEAR_INSTALL_DIR 78 INCARG="-d include_path=$MAGE_PEAR_INSTALL_DIR" 79 else 80 INCDIR="$MAGE_PEAR_ROOT_DIR/php" 81 INCARG="-d include_path=$MAGE_PEAR_ROOT_DIR/php" 82 fi 83 84 # look for pear.ini file 85 if test "x$MAGE_PEAR_INI" != "x"; then 86 PEAR_INI=$MAGE_PEAR_INI 87 else 88 PEAR_INI="$MAGE_PEAR_ROOT_DIR/pear.ini" 89 fi 90 91 exec $PHP -C -q $INCARG -d output_buffering=1 -d variables_order=EGPCS \ 92 -d open_basedir="" -d safe_mode=0 -d register_argc_argv="On" \ 93 -d auto_prepend_file="" -d auto_append_file="" \ 94 $INCDIR/pearmage.php -c $PEAR_INI "$@" 95
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
|
|
|
|