remove redirect in favor of gpg output argument

This commit is contained in:
Aaron Murray 2023-11-15 09:07:02 -06:00
parent 8749b3555e
commit 5ac91ab46f

View File

@ -15,7 +15,7 @@
#
logfile="omv_install.log"
version="2.2.1"
version="2.2.2"
_log()
@ -323,7 +323,7 @@ if [[ ! "${omvInstall}" == "ii" ]]; then
_log "Adding openmediavault repo and key..."
echo "deb [signed-by=${omvKey}] ${omvRepo} ${omvCodename} main" | tee ${omvSources}
wget --quiet --output-document=- "${omvKeyUrl}" | gpg --dearmor > "${omvKey}"
wget --quiet --output-document=- "${omvKeyUrl}" | gpg --dearmor --yes --output "${omvKey}"
_log "Updating repos..."
apt-get update 2>&1 | tee -a ${logfile}