Files
MySQL-BU/run.sh
2018-10-15 22:32:58 -05:00

24 lines
566 B
Bash
Executable File

#!/usr/bin/env bash
# UbUpdate - Ubuntu Update Scripts Loader
cd /opt/LinUPx
echo ""
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" = "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
echo -e "\e[92m\e[1mUp to date\e[0m"
else
echo -e "\e[93m\e[1mnot up to date\e[21m, updating now...\e[0m"
sleep 1
# git -c http.sslVerify=false pull
git fetch origin master
git reset --hard origin/master
source /opt/LinUPx/settings.conf
echo ""
echo -e "\e[92m\e[1mLinUPx update completed\e[0m"
fi
sleep 1
./linupx-scripts.sh $1 $2
exit 0