Skip to content

Instantly share code, notes, and snippets.

View grmpfhmbl's full-sized avatar
💻
__φ(。。)

Steffen Reichel grmpfhmbl

💻
__φ(。。)
  • University of Salzburg - Z_GIS
  • Salzburg, Austria
View GitHub Profile
@grmpfhmbl
grmpfhmbl / pk-daemon-install.sh
Created October 20, 2017 09:22
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
#!/bin/bash
set -e
if [ $# -ne 2 ]; then
echo "usage: $0 <base_uri> <target_dir_path>"
exit 1;
fi
BASE_URI=$1