From 294548ed25d0beff29d728ee9f88ab4502432e80 Mon Sep 17 00:00:00 2001 From: slerena Date: Tue, 26 Aug 2008 00:31:52 +0000 Subject: [PATCH] 2008-08-26 Sancho Lerena * pandora_*installer: Minimal fix creating cront task in installer git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1036 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/pandora_package_installer | 3 ++- pandora_server/pandora_server_installer | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 20fd999618..313fc40d1b 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ + +2008-08-26 Sancho Lerena + + * pandora_*installer: Minimal fix creating cront task in installer + 2008-08-25 Ramon Novoa * bin/pandora_wmi: Check for wmic execution errors. diff --git a/pandora_server/pandora_package_installer b/pandora_server/pandora_package_installer index 23e6d80be9..0933f37055 100755 --- a/pandora_server/pandora_package_installer +++ b/pandora_server/pandora_package_installer @@ -57,7 +57,8 @@ install () { cp -R util /usr/share/pandora if [ -d /etc/cron.daily ] then - echo "perl /usr/share/pandora/util/pandora_db /etc/pandora/pandora_server.conf" > /etc/cron.daily/pandora_purge_db + echo "#!/bin/bash" > /etc/cron.daily/pandora_purge_db + echo "perl /usr/share/pandora/util/pandora_db /etc/pandora/pandora_server.conf" >> /etc/cron.daily/pandora_purge_db chmod +x /etc/cron.daily/pandora_purge_db else echo "You're probably not using cron for automatic scheduling. You should schedule the following command to run frequently (daily) on your master server:" diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index 26ece6324a..70b6a2e53b 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -98,7 +98,8 @@ else cp -R util /usr/share/pandora if [ -d /etc/cron.daily ] then - echo "perl /usr/share/pandora/util/pandora_db /etc/pandora/pandora_server.conf" > /etc/cron.daily/pandora_purge_db + echo "#!/bin/bash" > /etc/cron.daily/pandora_purge_db + echo "perl /usr/share/pandora/util/pandora_db /etc/pandora/pandora_server.conf" >> /etc/cron.daily/pandora_purge_db chmod +x /etc/cron.daily/pandora_purge_db else echo "You're probably not using cron for automatic scheduling. You should schedule the following command to run frequently (daily) on your master server:"