Revize 8aa82b90
Přidáno uživatelem david před asi 11 roky(ů)
install.sh | ||
---|---|---|
#!/bin/bash
|
||
|
||
#
|
||
# This file is part of open source system FreenetIS
|
||
# and it is released under GPLv3 licence.
|
||
#
|
||
# More info about licence can be found:
|
||
# http://www.gnu.org/licenses/gpl-3.0.html
|
||
#
|
||
# More info about project can be found:
|
||
# http://www.freenetis.org/
|
||
#
|
||
#
|
||
|
||
set -e
|
||
|
||
if [ "$(id -u)" != "0" ]; then
|
||
... | ... | |
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 1>>\"/var/log/freenetis-addresses.log\"" >> /etc/cron.d/freenetis-addresses
|
||
echo "00 5 * * * root /var/www/freenetis-addresses/import.sh >>\"/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
Nove:
- pridani hlavicek FN do souboru
Upravy:
- pridani country ID do databaze
- vyprazdneni docasne databaze pred importem
- uprava vypisu stavu
Opravy:
- oprava importu adres
- oprava vyhledavani