Author: nextgens
Date: 2008-05-03 16:01:23 +0000 (Sat, 03 May 2008)
New Revision: 19705
Modified:
trunk/apps/new_installer/res/unix/bin/remove_cronjob.sh
Log:
new_installer: fix a bug I've just introduced (bis repetita)
Modified: trunk/apps/new_installer/res/unix/bin/remove_cronjob.sh
===================================================================
--- trunk/apps/new_installer/res/unix/bin/remove_cronjob.sh 2008-05-03
15:02:58 UTC (rev 19704)
+++ trunk/apps/new_installer/res/unix/bin/remove_cronjob.sh 2008-05-03
16:01:23 UTC (rev 19705)
@@ -1,6 +1,6 @@
#!/bin/sh
-if test grep -c " #FREENET AUTOSTART - 8888" -gt 0
+if test `crontab -l | grep -c " #FREENET AUTOSTART - 8888"` -gt 0
then
echo Found service in crontab, removing it...
crontab -l | grep -v " #FREENET AUTOSTART - 8888" | crontab -