This commit is contained in:
2023-05-03 21:50:57 -05:00
parent d9066682a2
commit 896b68e1a2
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='3.8.211-05022023'
VERS='3.8.214-05022023'
MMFOLDER="/opt/idssys/mediamanager"
TMPFOLDER="${MMFOLDER}/.tmp"
@@ -60,6 +60,7 @@ MM_SERVICE_CFG['jackett']='/home/user/.config/Jackett'
MM_SERVICE_CFG['bazarr']=''
declare -A MM_SERVICE_APP
MM_SERVICE_APP['qbittorrent']='none'
MM_SERVICE_APP['sonarr']='/usr/lib/sonarr/bin'
MM_SERVICE_APP['snap.tautulli.tautulli']='/snap/tautulli/current'

View File

@@ -972,7 +972,7 @@ SERVICEBACKUP(){
[[ -f ${bak} ]] && rm -f "${bak}" &>/dev/null
[[ -f ${tmpfile} ]] && rm -f "${tmpfile}" &>/dev/null
[ "${MM_SERVICE_APP[$usrvc]}" != "" ] && bkfldr=${MM_SERVICE_APP[$usrvc]} || bkfldr=/opt/${usrvc^}
/bin/tar -cpPf $bak ${bkfldr} >> ${MMFOLDER}/logs/update.${usrvc}
[ "${MM_SERVICE_APP[$usrvc]}" != "none" ] && /bin/tar -cpPf $bak ${bkfldr} >> ${MMFOLDER}/logs/update.${usrvc}
[ "${MM_SERVICE_CFG[${usrvc}]}" != "" ] && [ -d ${MM_SERVICE_CFG[${usrvc}]} ] && /bin/tar -cpPf $bakcfg ${MM_SERVICE_CFG[${usrvc}]} >> ${MMFOLDER}/logs/update.${usrvc}
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
}