First files to the project
This commit is contained in:
commit
cda8eb1232
26 changed files with 2657 additions and 0 deletions
27
scripts/system/install_python.sh
Normal file
27
scripts/system/install_python.sh
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#!/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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue