update
This commit is contained in:
@@ -925,14 +925,15 @@ UPDATESERVICE(){
|
||||
elif [ "${MM_UPDATE_REPO[${usrvc}]}" == "systemd" ]; then
|
||||
msg="Checking for update"; 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]}"
|
||||
|
||||
if [ "$(apt-get -s upgrade | grep ${usrvc})" != "" ] || [ "${2}" == "force" ]; then
|
||||
[ "${usrvc}" == "qbittorrent" ] && ausrvc="qbittorrent-nox" || ausrvc=${usrvc}
|
||||
|
||||
if [ "$(apt-get -s upgrade | grep ${ausrvc})" != "" ] || [ "${2}" == "force" ]; then
|
||||
echo -e "${idsCL[Green]}Update Available${idsCL[Default]}"
|
||||
SERVICEBACKUP ${usrvc}
|
||||
|
||||
msg="Updating service"; 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/apt install ${usrvc} >/dev/null 2>&1
|
||||
/usr/bin/apt install ${ausrvc} >/dev/null 2>&1
|
||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||
echo "$(date) - Updating Service (${usrvc}) : Completed" >> $logfile
|
||||
|
||||
@@ -996,8 +997,8 @@ SHOWSRVCUPDATES(){
|
||||
for usrvc in "${UPDATE_SERVICES[@]}"; do
|
||||
if [ "${usrvc}" != "organizr" ]; then
|
||||
if [ "${MM_UPDATE_REPO[${usrvc}]}" == "systemd" ]; then
|
||||
|
||||
repo_ver=`dpkg -s ${usrvc} | grep Version`
|
||||
[ "${usrvc}" == "qbittorrent" ] && ausrvc="qbittorrent-nox" || ausrvc=${usrvc}
|
||||
repo_ver=`dpkg -s ${ausrvc} | grep Version`
|
||||
echo -e "${idsCL[LightCyan]}${MM_SERVICES[${usrvc}]}:${idsCL[Default]} Apt Repo Controller"
|
||||
echo -e "${idsCL[LightGreen]}Repo Release : ${repo_ver/Version: /v}${idsCL[Default]}"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user