#2369 twitter cron for packaged version
This commit is contained in:
parent
8231e0fdd5
commit
a5ec7cabac
|
@ -428,6 +428,22 @@ if [ "$storage_is_local" = "yes" ]; then
|
||||||
fi
|
fi
|
||||||
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
|
# Update the database, if necessary
|
||||||
|
|
|
@ -20,7 +20,7 @@ $h ='*';
|
||||||
$dom = '*';
|
$dom = '*';
|
||||||
$mon = '*';
|
$mon = '*';
|
||||||
$dow = '*';
|
$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/';
|
$old_regex = '/ui_twitterCron\.php/';
|
||||||
|
|
||||||
$cron = new Cron();
|
$cron = new Cron();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(dirname(__FILE__).'/../ui_conf.php');
|
require_once(dirname(__FILE__).'ui_conf.php');
|
||||||
require_once(dirname(__FILE__).'/../ui_handler.class.php');
|
require_once(dirname(__FILE__).'ui_handler.class.php');
|
||||||
|
|
||||||
$uiHandler = new uiHandler($CC_CONFIG);
|
$uiHandler = new uiHandler($CC_CONFIG);
|
||||||
$uiHandler->init();
|
$uiHandler->init();
|
Loading…
Reference in New Issue