Update mm-scripts.sh

This commit is contained in:
2023-03-25 13:30:33 -05:00
parent c1fadc83e2
commit 0649c92a52

View File

@@ -628,8 +628,8 @@ UPDATESERVICE(){
wget -qO ${tmpfile} $latest_release_url >> ${MMFOLDER}/logs/${usrvc}.update
if [[ ( $? -eq 0 ) && ( -f ${tmpfile} ) ]]; then
rm -Rf /opt/${usrvc^} >> ${MMFOLDER}/logs/${usrvc}.update
/bin/tar czpf $bak /opt/${usrvc^} >> ${MMFOLDER}/logs/${usrvc}.update
/bin/tar xf ${tmpfile} -C /opt/${usrvc^} >> ${MMFOLDER}/logs/${usrvc}.update
/bin/tar czpfP $bak /opt/${usrvc^} >> ${MMFOLDER}/logs/${usrvc}.update
/bin/tar xfP ${tmpfile} -C /opt/${usrvc^} >> ${MMFOLDER}/logs/${usrvc}.update
chown -R user:users /opt/${usrvc^}
fi
fi