Created
October 20, 2017 09:22
-
-
Save grmpfhmbl/982d97605493fe7289ef0e4242c9eaf7 to your computer and use it in GitHub Desktop.
Pagekite daemon installer
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
#!/bin/bash | |
echo "fetching start scripts from github" | |
sudo wget -O /etc/init.d/pagekite https://raw.githubusercontent.com/pagekite/PyPagekite/main/etc/init.d/pagekite.debian | |
## change the DAEMON to the correct executable | |
sudo sed -i 's#^DAEMON=.*$#DAEMON=/usr/local/bin/$NAME.py#' /etc/init.d/pagekite | |
sudo chmod +x /etc/init.d/pagekite | |
sudo mkdir /etc/pagekite.d | |
sudo wget -O /etc/pagekite.d/10_account.rc https://raw.githubusercontent.com/pagekite/PyPagekite/main/etc/pagekite.d/10_account.rc | |
sudo wget -O /etc/pagekite.d/20_frontends.rc https://raw.githubusercontent.com/pagekite/PyPagekite/main/etc/pagekite.d/20_frontends.rc | |
sudo wget -O /etc/logrotate.d/pagekite https://raw.githubusercontent.com/pagekite/PyPagekite/main/etc/logrotate.d/pagekite.debian | |
sudo mkdir /var/log/pagekite | |
sudo systemctl daemon-reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment