file2link/cron.php
2021-02-28 15:33:52 +01:00

18 lines
378 B
PHP

#!/usr/bin/php
<?php
$config = yaml_parse_file('./config.yaml');
include('./lib/functions.php');
if ($config['expireCron'] == 'cli') {
if (!is_dir($config['uploadDir'])) {
exit(_('Start the command in the file2link directory'));
}
cronExpire();
echo _('Completed')."\n";
} else {
exit(_('expireCron is not at "cli" mod (in config.yaml)'));
}
?>