blob: 74edb8135b89ab7ab6eea5a4af612d3b4b811f2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
[Unit]
Description=Updates Telegram configuration
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/curl -s https://core.telegram.org/getProxyConfig -o /var/lib/mtproxy/multi.conf
ExecStart=/usr/bin/curl -s https://core.telegram.org/getProxySecret -o /var/lib/mtproxy/secret.conf
ExecStartPost=/usr/bin/systemctl try-restart mtproxy.service
StandardError=journal
|