Skip to content

Instantly share code, notes, and snippets.

@grmpfhmbl
Created October 20, 2017 09:22
Show Gist options
  • Save grmpfhmbl/982d97605493fe7289ef0e4242c9eaf7 to your computer and use it in GitHub Desktop.
Save grmpfhmbl/982d97605493fe7289ef0e4242c9eaf7 to your computer and use it in GitHub Desktop.
Pagekite daemon installer
#!/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