diff --git a/easyinstall.sh b/easyinstall.sh index 9093f4e4..3b8536ee 100755 --- a/easyinstall.sh +++ b/easyinstall.sh @@ -594,13 +594,29 @@ function installNetatalk() { } function installMacproxy { - MACPROXY_DIR="$HOME/macproxy" + PORT=5000 + + echo "Macproxy is a Web Proxy for all vintage Web Browsers -- not only for Macs!" + echo "" + echo "By default, Macproxy listens to port $PORT, but you can choose any other available port." + echo -n "Enter a port number 1024 - 65535, or press Enter to use the default port: " + + read -r CHOICE + if [ $CHOICE -ge "1024" ] && [ $CHOICE -le "65535" ]; then + PORT=$CHOICE + else + echo "Using the default port $PORT" + fi + + MACPROXY_VER="21.11" + MACPROXY_DIR="$HOME/macproxy-$MACPROXY_VER" if [ -d "$MACPROXY_DIR" ]; then echo "The $MACPROXY_DIR directory already exists. Delete it to proceed with the installation." exit 1 fi cd "$HOME" || exit 1 - git clone https://github.com/rdmark/macproxy.git {% if macproxy_configured %} -

macproxy is running at {{ ip_addr }} port 5000

+

Macproxy is running at {{ ip_addr }} port 5000

{% else %} -

Install macproxy to browse the Web with your vintage browser.

+

Install Macproxy to browse the Web with any vintage browser. It's not just for Macs!

{% endif %}