summarylogtreecommitdiffstats
path: root/update-github520-hosts.service
blob: 8f2078fb9de28c36669e34341c51d12d406ebe16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Update GitHub520 Hosts File
After=network.target

[Service]
User=root
PermissionsStartOnly=true
ExecStart=/bin/bash -c 'sed -i "/# GitHub520 Host Start/Q" /etc/hosts && wget -O - https://raw.hellogithub.com/hosts >> /etc/hosts'
Restart=on-failure
RestartSec=30
StartLimitInterval=3min

[Install]
WantedBy=default.target