summaryrefslogtreecommitdiff
path: root/bin/cleandb.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cleandb.sh')
-rwxr-xr-xbin/cleandb.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/cleandb.sh b/bin/cleandb.sh
index 98f52d0cf..978b17dfa 100755
--- a/bin/cleandb.sh
+++ b/bin/cleandb.sh
@@ -20,12 +20,9 @@
*/
-if (php_sapi_name() != 'cli') {
- die('Not on the "shell" (php-cli).');
-}
-
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
-require INSTALL_PATH.'program/include/iniset.php';
+
+require INSTALL_PATH.'program/include/clisetup.php';
// mapping for table name => primary key
$primary_keys = array(