install.sh 898 Bytes
Newer Older
1
2
#!/bin/bash

3
4
######################################################################
#
Aral Balkan's avatar
Aral Balkan committed
5
# Indie Web Server v10.2.0 Installer
6
7
8
9
10
#
# To use:
#
# wget -qO- https://ind.ie/web-server/install.sh | bash
#
11
12
# This script is only for Linux and macOS.
# On Windows, please use Windows Subsystem for Linux.
13
14
15
#
######################################################################

16
17
set -e
echo
Aral Balkan's avatar
Aral Balkan committed
18
echo " 📡 Downloading Indie Web Server v10.2.0…"
19

20
21
if [[ "$OSTYPE" == "linux-gnu" ]]; then
  # Linux
Aral Balkan's avatar
Aral Balkan committed
22
  wget -q https://ind.ie/web-server/linux/10.2.0.tar.gz
23
24
elif [[ "$OSTYPE" == "darwin"* ]]; then
  # macOS
Aral Balkan's avatar
Aral Balkan committed
25
  wget -q https://ind.ie/web-server/macos/10.2.0.tar.gz
26
27
else
  # Unsupported
28
  echo "\n ❌ Error: this operating system is not supported.\n"
29
30
31
  exit 1
fi

32
echo " 📦 Installing…"
Aral Balkan's avatar
Aral Balkan committed
33
34
gzip -d 10.2.0.tar.gz
tar -xvf 10.2.0.tar > /dev/null
35
sudo mv web-server /usr/local/bin/
Aral Balkan's avatar
Aral Balkan committed
36
rm 10.2.0.tar
37

38
echo " 🎉 Done!"
Aral Balkan's avatar
Aral Balkan committed
39
echo