diff --git a/install_multi-status.sh b/install_multi-status.sh new file mode 100644 index 0000000..3fc1fb6 --- /dev/null +++ b/install_multi-status.sh @@ -0,0 +1,65 @@ +#!/bin/bash + +# Script created in part by ChatGPT (GPT-3.5) +# https://github.com/openai/gpt-3.5 + +# Original repository: https://github.com/lwindolf/multi-status +# Original author: Lars Windolf +# Contributing script author: Jeff (https://github.com/jeff89179) + +# 1. Git clone https://github.com/lwindolf/multi-status.git into / +echo "Cloning multi-status repository..." +cd / +git clone https://github.com/lwindolf/multi-status.git + +# 2. Install dependencies +echo "Installing dependencies..." +sudo apt-get update +sudo apt-get install -y libjson-perl libxml-feed-perl + +# 3. Change directory to /multi-status/backend/ +cd /multi-status/backend/ + +# 4. Run ./update.pl and wait for completion +echo "Running update.pl..." +./update.pl > /multi-status/frontend/data.json + +# Wait until update.pl completes (you can specify a timeout) +while ! [ -f /multi-status/frontend/data.json ] +do + sleep 1 +done +echo "update.pl completed." + +# 5. Change directory back to /multi-status +cd /multi-status + +# 6. Create a symbolic link +echo "Creating symbolic link..." +ln -s frontend multi-status + +# 7. Create, start, and enable the multi-status.service +echo "Creating, starting, and enabling multi-status.service..." +cat <