update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERS='3.8.157-04232023'
|
||||
VERS='3.8.161-04232023'
|
||||
|
||||
MMFOLDER="/opt/idssys/mediamanager"
|
||||
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
||||
|
||||
@@ -815,11 +815,10 @@ UPDATESERVICE(){
|
||||
DIVIDER . lightGreen
|
||||
echo ${usrvc}
|
||||
if [ "${usrvc}" == "organizr" ]; then
|
||||
msg="Updating Organizr Web UI Interface"; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||
|
||||
cd /var/www/media.scity.us/html >/dev/null 2>&1
|
||||
if [ "`git log --pretty=%H ...refs/heads/v2-master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/v2-master |cut -f1`" ]; then
|
||||
msg="Updating Organizr Web UI Interface"; c=0; spc=''; spc1=$((${cw_spc}-${#msg})); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -en "${idsCL[White]}${msg}${spc} : ${idsCL[Default]}"
|
||||
/usr/bin/git stash >/dev/null 2>&1
|
||||
/usr/bin/git pull >/dev/null 2>&1
|
||||
/bin/chown -Rf www-data:www-data /var/www/media.scity.us/html
|
||||
@@ -830,7 +829,7 @@ UPDATESERVICE(){
|
||||
/bin/systemctl restart nginx >/dev/null 2>&1
|
||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||
else
|
||||
echo -e "${idsCL[LightCyan]}Update not needed${idsCL[Default]}"
|
||||
echo -e " ${idsCL[LightCyan]} Update Not Needed ${idsCL[Default]}"
|
||||
fi
|
||||
|
||||
echo "$(date) - Updated Organizr" >> $logfile
|
||||
|
||||
Reference in New Issue
Block a user