qubes-updates-proxy: make ShellCheck happy
This commit is contained in:
parent
94dad3640c
commit
46c2b9789d
@ -29,7 +29,7 @@
|
|||||||
[ "$NETWORKING" = "no" ] && exit 0
|
[ "$NETWORKING" = "no" ] && exit 0
|
||||||
|
|
||||||
exec="$(command -v tinyproxy)"
|
exec="$(command -v tinyproxy)"
|
||||||
prog=$(basename $exec)
|
prog=$(basename "$exec")
|
||||||
config="/etc/tinyproxy/tinyproxy-updates.conf"
|
config="/etc/tinyproxy/tinyproxy-updates.conf"
|
||||||
pidfile="/var/run/tinyproxy-updates/tinyproxy.pid"
|
pidfile="/var/run/tinyproxy-updates/tinyproxy.pid"
|
||||||
|
|
||||||
@ -46,14 +46,14 @@ start() {
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -x $exec ] || exit 5
|
[ -x "$exec" ] || exit 5
|
||||||
[ -f $config ] || exit 6
|
[ -f $config ] || exit 6
|
||||||
# setup network redirection
|
# setup network redirection
|
||||||
/sbin/iptables -I INPUT -i vif+ -p tcp --dport 8082 -j ACCEPT
|
/sbin/iptables -I INPUT -i vif+ -p tcp --dport 8082 -j ACCEPT
|
||||||
/sbin/iptables -t nat -A PR-QBS-SERVICES -i vif+ -d 10.137.255.254 -p tcp --dport 8082 -j REDIRECT
|
/sbin/iptables -t nat -A PR-QBS-SERVICES -i vif+ -d 10.137.255.254 -p tcp --dport 8082 -j REDIRECT
|
||||||
|
|
||||||
echo -n $"Starting $prog (as Qubes updates proxy): "
|
echo -n $"Starting $prog (as Qubes updates proxy): "
|
||||||
daemon $exec -c $config
|
daemon "$exec" -c $config
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
[ $retval -eq 0 ] && touch $lockfile
|
[ $retval -eq 0 ] && touch $lockfile
|
||||||
|
Loading…
Reference in New Issue
Block a user