Changeset 24260


Ignore:
Timestamp:
2010-12-05T15:08:56+01:00 (5 years ago)
Author:
jow
Message:

[packages] polipo: solve a bunch of "sh: bad number" errors in init script, always allow 127.0.0.1

Location:
packages/net/polipo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/polipo/Makefile

    r20609 r24260  
    1010PKG_NAME:=polipo 
    1111PKG_VERSION:=1.0.4.1 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/polipo/files/polipo.init

    r15247 r24260  
    114114        local OPTION=$2 
    115115        local QUOTE=$3 
    116         local EMPTY_DISABLED=$4 
     116        local EMPTY_DISABLED=${4:-0} 
    117117 
    118118        config_get _value "$SECTION" "$OPTION" 
     
    139139 
    140140        config_get _value "$SECTION" "$OPTION" 
     141         
     142        [ "$SECTION" = general ] && [ "$OPTION" = allowedClients ] && { 
     143                case "$_value" in 
     144                        *127.0.0.1*) : ;; 
     145                        *) _value="127.0.0.1 $_value" ;; 
     146                esac 
     147        } 
     148         
    141149        [ -n "$_value" ] && { 
    142150                echo -n "$OPTION = " 
Note: See TracChangeset for help on using the changeset viewer.