Last active
May 5, 2019 03:07
-
-
Save typcn/52506f29ade87df6f208ca11bf721a4b to your computer and use it in GitHub Desktop.
Install cloudflare railgun on ArchLinux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/zsh | |
mkdir rg-install | |
cd rg-install | |
wget http://pkg.cloudflare.com/dists/xenial/railgun/binary-amd64/Packages.gz | |
gunzip Packages.gz | |
wget "http://pkg.cloudflare.com/${$(cat Packages | grep Filename:)//Filename: }" | |
ar -x *.deb | |
tar xvf data.tar.xz | |
rm -rf /usr/local/railgun | |
mkdir -p /usr/local/railgun | |
mv etc /usr/local/railgun | |
mv usr/bin/* /usr/local/bin/ | |
cd .. | |
rm -rf rg-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Cloudflare Railgun | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/bin/rg-listener -config=/usr/local/railgun/etc/railgun/railgun.conf | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment