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