forked from TannerReynolds/ShareX-Upload-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
29 lines (28 loc) · 875 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
echo "Update apt-get"
echo "--------------------------------------------"
apt-get -y update
echo "--------------------------------------------"
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' make|grep "install ok installed")
echo Checking for make: $PKG_OK
if [ "" == "$PKG_OK" ]; then
echo "Make isn't installed. Setting up make."
sudo apt-get -y install make
echo "--------------------------------------------"
fi
if which node > /dev/null
then
echo "Node is already installed, skipping..."
else
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
fi
cd src && npm i -g pm2
cd src && npm i
wget https://exiftool.org/Image-ExifTool-11.80.tar.gz
tar xvf Image-ExifTool-11.80.tar.gz
cd Image-ExifTool-11.80
perl Makefile.PL
make
make test
make install
echo "Finished installing dependencies!"