#!/bin/sh echo "Installing git" echo '{"error": 0, "status": 0, "progress": 0, "no_progress":0, "message": "Installing git..."}' sleep 1 sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y git if [ $? -eq 0 ]; then sleep 1 #echo "Installed git sucessfully if not error..." echo '{"error": 0, "status": 0, "progress": 100, "no_progress":0, "message": "Installed git sucessfully..."}' sleep 1 else echo "Sorry, cannot update the server..." exit; fi