# https://anystack.xyz/how-to-install-mastodon-ubuntu/ #!/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