#2369 twitter cron for packaged version

This commit is contained in:
sebastian 2010-02-17 22:48:57 +00:00
parent 8231e0fdd5
commit a5ec7cabac
3 changed files with 19 additions and 3 deletions

View File

@ -428,6 +428,22 @@ if [ "$storage_is_local" = "yes" ]; then
fi
fi
#-------------------------------------------------------------------------------
# Initialize the twitter cron
#-------------------------------------------------------------------------------
echo "Initializing twitter cron...";
cd $install_var_ls/htmlUI/var/install
# workaround for #2059; restore to "exit 1" after the ticket is closed
php -q install.php || exit 1;
#php -q install.php || true
cd -
# We need the scheduler password here too
sed -i -e "s/change_me/${SCHEDULER_STORAGE_PASS}/" \
$install_var_ls/htmlUI/var/html/ui_twitterCron.php
#-------------------------------------------------------------------------------
# Update the database, if necessary

View File

@ -20,7 +20,7 @@ $h ='*';
$dom = '*';
$mon = '*';
$dow = '*';
$command = '/usr/bin/php '.realpath(dirname(__FILE__).'/../html/ui_twitterCron.php').' >/dev/null 2>&1';
$command = '/usr/bin/php '.realpath(dirname(__FILE__).'/../ui_twitterCron.php').' >/dev/null 2>&1';
$old_regex = '/ui_twitterCron\.php/';
$cron = new Cron();

View File

@ -1,6 +1,6 @@
<?php
require_once(dirname(__FILE__).'/../ui_conf.php');
require_once(dirname(__FILE__).'/../ui_handler.class.php');
require_once(dirname(__FILE__).'ui_conf.php');
require_once(dirname(__FILE__).'ui_handler.class.php');
$uiHandler = new uiHandler($CC_CONFIG);
$uiHandler->init();