Premier jet des scripts d'installation de l'instance Mastodon

This commit is contained in:
2018-05-06 14:01:46 +02:00
parent 9f8fc793d7
commit 9e9cfe8148
4 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
#set -x
# Check if it is a Ubuntu host
/usr/bin/lsb_release -d|cut -d ":" -f 2|grep -i ubuntu|grep "16.04" 1>/dev/null
if [ $? == 0 ]
then
echo "C'est bien une Ubuntu"
else
exit 1
fi
apt-get update || exit 2
curl -sL https://deb.nodesource.com/setup_6.x | bash - || exit 3
apt-get install imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev nodejs -y || exit 4
npm install -g yarn || exit 5