summaryrefslogtreecommitdiff
path: root/bin/installto.sh
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-04-20 13:10:45 +0000
committeralecpl <alec@alec.pl>2011-04-20 13:10:45 +0000
commit6cc3f5887d7af3ad3b505a6f0fa62752314be1fe (patch)
tree500e047f291f3f40b333adafc36aa9447dd84a01 /bin/installto.sh
parent61517ce39da8d64b37328ee98d2d53a408351dd4 (diff)
- Use clisetup.php where possible, remove redundant code
Diffstat (limited to 'bin/installto.sh')
-rwxr-xr-xbin/installto.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/installto.sh b/bin/installto.sh
index f953419ce..b1e2956a1 100755
--- a/bin/installto.sh
+++ b/bin/installto.sh
@@ -19,12 +19,9 @@
*/
-if (php_sapi_name() != 'cli') {
- die('Not on the "shell" (php-cli).');
-}
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
-require_once INSTALL_PATH . 'program/include/iniset.php';
+require_once INSTALL_PATH . 'program/include/clisetup.php';
$target_dir = unslashify($_SERVER['argv'][1]);