Update run.sh
This commit is contained in:
10
run.sh
10
run.sh
@@ -17,13 +17,13 @@ fi
|
||||
|
||||
if [ "${1}" == "update" ]; then
|
||||
if curl -m 15 -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then
|
||||
if [ "${2}" != "q" ]; then
|
||||
if [ "${2}" != "qq" ]; then
|
||||
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
|
||||
echo ""
|
||||
fi
|
||||
cd /opt/idssys/defaults
|
||||
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
||||
if [ "${2}" != "q" ]; then
|
||||
if [ "${2}" != "qq" ]; then
|
||||
echo -en "\e[1A";
|
||||
echo -e "\e[0K\r ${idsCL[LightCyan]}Updating iDSSYS-Defaults...${idsCL[Default]}"
|
||||
fi
|
||||
@@ -38,7 +38,7 @@ if [ "${1}" == "update" ]; then
|
||||
|
||||
cd ${MMFOLDER}
|
||||
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
|
||||
if [ "${2}" != "q" ]; then
|
||||
if [ "${2}" != "qq" ]; then
|
||||
echo -en "\e[1A";
|
||||
echo -e "\e[0K\r ${idsCL[LightCyan]}Installing mediamanager updates...${idsCL[Default]}"
|
||||
fi
|
||||
@@ -50,12 +50,12 @@ if [ "${1}" == "update" ]; then
|
||||
git pull >/dev/null 2>&1
|
||||
git submodule update --remote >/dev/null 2>&1
|
||||
/bin/chmod +x ${MMFOLDER}/mm-scripts.sh 2>&1
|
||||
if [ "${2}" != "q" ]; then
|
||||
if [ "${2}" != "qq" ]; then
|
||||
echo -en "\e[1A";
|
||||
source /opt/idssys/mediamanager/defaults.inc
|
||||
echo -e "\e[0K\r ${idsCL[Green]}Update to v${VERS} complete${idsCL[Default]}"
|
||||
fi
|
||||
elif [ "${2}" != "q" ]; then
|
||||
elif [ "${2}" != "qq" ]; then
|
||||
echo -en "\e[1A";
|
||||
echo -e "\e[0K\r ${idsCL[LightCyan]}No Updates Available${idsCL[Default]}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user