Revize 02314c07
Přidáno uživatelem David Raška před více než 10 roky(ů)
install.sh | ||
---|---|---|
echo "# /etc/cron.d/freenetis-addresses: Regular CRON file for freenetis-addressses (triggered each day)" > /etc/cron.d/freenetis-addresses
|
||
echo "" >> /etc/cron.d/freenetis-addresses
|
||
echo "SHELL=/bin/bash" >> /etc/cron.d/freenetis-addresses
|
||
echo "00 5 * * * root /var/www/freenetis-addresses/import.sh --cron >>\"/var/log/freenetis-addresses.log\" 2>&1" >> /etc/cron.d/freenetis-addresses
|
||
echo $(shuf -i 0-59 -n 1) $(shuf -i 0-23 -n 1) "* * * root /var/www/freenetis-addresses/import.sh --cron >>\"/var/log/freenetis-addresses.log\" 2>&1" >> /etc/cron.d/freenetis-addresses
|
||
|
||
if [ -x /usr/sbin/invoke-rc.d ]; then
|
||
invoke-rc.d cron restart 3>/dev/null || true
|
Také k dispozici: Unified diff
Changes:
- Added changelog
- install.sh now generates random time of address downloading