debian/preinst
changeset 69 f4e4b8d01322
parent 68 3fa7ee3a0c87
equal deleted inserted replaced
68:3fa7ee3a0c87 69:f4e4b8d01322
    11             dpkg --compare-versions "$2" le "0.39" && \
    11             dpkg --compare-versions "$2" le "0.39" && \
    12             [ -f /etc/logbuch/config.pm ]; then
    12             [ -f /etc/logbuch/config.pm ]; then
    13             dirs=$(perl -e 'use lib "/etc/logbuch"; use config; print join " ", @config::notify_dirs');
    13             dirs=$(perl -e 'use lib "/etc/logbuch"; use config; print join " ", @config::notify_dirs');
    14             if [ -n "$dirs" ]; then
    14             if [ -n "$dirs" ]; then
    15                 for d in "$dirs"; do
    15                 for d in "$dirs"; do
    16                     chmod -R go= $d/.hg
    16                     if [ -d $d/.hg ]; then
       
    17                         chmod -R go= $d/.hg
       
    18                     else
       
    19                         echo "Warning: '$d/.hg' is not a directory" >&2
       
    20                     fi
    17                 done
    21                 done
    18             fi
    22             fi
    19         fi
    23         fi
    20     ;;
    24     ;;
    21 
    25