27 lines
467 B
Bash
27 lines
467 B
Bash
#!/bin/sh
|
|
|
|
sleep 1
|
|
|
|
echo '{"error": 0, "status": 0, "progress": 0, "no_progress":0, "message": "Installing Python..."}'
|
|
|
|
sleep 1
|
|
|
|
sudo apt-get -y install python3 python3-pip
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
#echo "Installed python3 sucessfully if not error..."
|
|
echo '{"error": 0, "status": 0, "progress": 100, "no_progress":0, "message": "Installed python sucessfully..."}'
|
|
|
|
sleep 1
|
|
|
|
else
|
|
|
|
echo "Sorry, cannot install python..."
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
sleep 1
|
|
|