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 | |
set -e | |
if [ $# -ne 2 ]; then | |
echo "usage: $0 <base_uri> <target_dir_path>" | |
exit 1; | |
fi | |
BASE_URI=$1 |
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 |