Package: doodle
Version: 0.6.2-2
Severity: minor

I would like to propose a little more configuration to the 
/etc/cron.daily/doodle See changes below.

* Check for existence of configuration file
* Add new option for user: DOODLE_RUN_OPTIONS (defined in /etc/default/doodle)
* Check for existence of DOODLE_PATH, note that it's better to use
  &&-operator instead of "-a", because && short circuits, where -a doesn't.

-- current --

. /etc/default/doodle                                                      

if [ -x /usr/bin/doodle ]                                                  
then
        doodle -b "$DOODLE_PATH"                                           

        chown root.doodle "$DOODLE_DBPATH"                                 
fi

-- suggested --

conf=/etc/default/doodle                                                   
bin=/usr/bin/doodle                                                        

[ -r $conf ] && . $conf
                                                                           
if [ -x $bin ]; then
    if [ "$$DOODLE_PATH" ] && [ -d $DOODLE_PATH ]; then                
        $bin ${DOODLE_RUN_OPTIONS:-"-b"} "$DOODLE_PATH"                    
        chown root.doodle "$DOODLE_PATH"                             
    fi                                                                 
fi




-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)

Versions of packages doodle depends on:
ii  adduser                       3.63       Add and remove users and groups
ii  libdoodle1                    0.6.2-2    desktop search engine (library)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to