Verified Commit 75a31d03 authored by Aral Balkan's avatar Aral Balkan
Browse files

Update Indie Web Server installation script for better compatibility

(Replace unzip with gzip and tar which are present as standard on nearly all Linux distributions as well as on macOS.)
parent f91958ae
......@@ -19,10 +19,10 @@ echo " 📡 Downloading Indie Web Server v8.0.0…"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
# Linux
wget -q https://ind.ie/web-server/linux/8.0.0.zip
wget -q https://ind.ie/web-server/linux/8.0.0.tar.gz
elif [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
wget -q https://ind.ie/web-server/macos/8.0.0.zip
wget -q https://ind.ie/web-server/macos/8.0.0.tar.gz
else
# Unsupported
echo "\n ❌ Error: this operating system is not supported.\n"
......@@ -30,10 +30,10 @@ else
fi
echo " 📦 Installing…"
unzip 8.0.0.zip > /dev/null
chmod +x web-server > /dev/null
gzip -d 8.0.0.tar.gz
tar -xvf 8.0.0.tar > /dev/null
sudo mv web-server /usr/local/bin/
rm 8.0.0.zip
rm 8.0.0.tar
echo " 🎉 Done!"
echo
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment