Premier jet des scripts d'installation de l'instance Mastodon
This commit is contained in:
18
files/Install-Mastodon-Phase1.sh
Normal file
18
files/Install-Mastodon-Phase1.sh
Normal 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
|
||||
Reference in New Issue
Block a user