Handle tinyproxy path changed in upstream
Related commit 8d0ea71486
Fixes QubesOS/qubes-issues#4973 and QubesOS/qubes-issues#4929
This commit is contained in:
parent
feeb4b3816
commit
0fd8da62b6
3
Makefile
3
Makefile
@ -314,7 +314,8 @@ install-common: install-doc
|
||||
|
||||
install -D -m 0644 misc/marker-vm $(DESTDIR)/usr/share/qubes/marker-vm
|
||||
cut -f 1,2 -d . version >> $(DESTDIR)/usr/share/qubes/marker-vm
|
||||
|
||||
|
||||
install -m 0755 misc/tinyproxy-wrapper $(DESTDIR)/usr/lib/qubes/tinyproxy-wrapper
|
||||
|
||||
install -d $(DESTDIR)/var/run/qubes
|
||||
install -d $(DESTDIR)/rw
|
||||
|
1
debian/qubes-core-agent.install
vendored
1
debian/qubes-core-agent.install
vendored
@ -136,6 +136,7 @@ usr/lib/qubes/upgrades-installed-check
|
||||
usr/lib/qubes/upgrades-status-notify
|
||||
usr/lib/qubes/vm-file-editor
|
||||
usr/lib/qubes/xdg-icon
|
||||
usr/lib/qubes/tinyproxy-wrapper
|
||||
usr/lib/systemd/user/pulseaudio.service.d/30_qubes.conf
|
||||
usr/lib/systemd/user/pulseaudio.socket.d/30_qubes.conf
|
||||
usr/share/glib-2.0/schemas/*
|
||||
|
12
misc/tinyproxy-wrapper
Normal file
12
misc/tinyproxy-wrapper
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -e /usr/sbin/tinyproxy ]; then
|
||||
echo "Found tinyproxy at /usr/sbin/tinyproxy"
|
||||
/usr/sbin/tinyproxy "$@"
|
||||
elif [ -e /usr/bin/tinyproxy ]; then
|
||||
echo "Found tinyproxy at /usr/bin/tinyproxy"
|
||||
/usr/bin/tinyproxy "$@"
|
||||
else
|
||||
echo "tinyproxy not found"
|
||||
exit 1
|
||||
fi
|
@ -645,6 +645,7 @@ rm -f %{name}-%{version}
|
||||
/usr/lib/qubes/upgrades-status-notify
|
||||
/usr/lib/qubes/qubes-sync-clock
|
||||
/usr/lib/qubes/resize-rootfs
|
||||
/usr/lib/qubes/tinyproxy-wrapper
|
||||
/usr/lib/yum-plugins/yum-qubes-hooks.py*
|
||||
/usr/lib/dracut/dracut.conf.d/30-qubes.conf
|
||||
%dir /usr/lib/qubes/init
|
||||
|
@ -28,7 +28,7 @@
|
||||
# Check that networking is up.
|
||||
[ "$NETWORKING" = "no" ] && exit 0
|
||||
|
||||
exec="/usr/sbin/tinyproxy"
|
||||
exec="$(command -v tinyproxy)"
|
||||
prog=$(basename $exec)
|
||||
config="/etc/tinyproxy/tinyproxy-updates.conf"
|
||||
pidfile="/var/run/tinyproxy-updates/tinyproxy.pid"
|
||||
|
@ -1,12 +1,11 @@
|
||||
[Unit]
|
||||
Description=Qubes updates proxy (tinyproxy)
|
||||
ConditionPathExists=|/var/run/qubes-service/qubes-yum-proxy
|
||||
ConditionPathExists=|/var/run/qubes-service/qubes-updates-proxy
|
||||
After=qubes-iptables.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/lib/qubes/iptables-updates-proxy start
|
||||
ExecStart=/usr/sbin/tinyproxy -d -c /etc/tinyproxy/tinyproxy-updates.conf
|
||||
ExecStart=/bin/bash -c '/usr/lib/qubes/tinyproxy-wrapper -d -c /etc/tinyproxy/tinyproxy-updates.conf'
|
||||
ExecStopPost=/usr/lib/qubes/iptables-updates-proxy stop
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
Loading…
Reference in New Issue
Block a user