Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 02314c07

Přidáno uživatelem David Raška před více než 10 roky(ů)

Changes:
- Added changelog
- install.sh now generates random time of address downloading

Zobrazit rozdíly:

README.md
- Create database structure using db_structure.sql script
- Run install.sh under root user
- Run /var/www/freenetis-addresses/import.sh under root user for first time database update
Changelog
---------
Changelog in debian format is available [here](changelog).
changelog
freenetis-address (0.1.0) stable; urgency=low
* First release
-- David Raska <jeffraska@gmail.com> Thu, 03 Jul 2014 08:00:00 +0200
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