diff --git a/manage b/manage index 50455cc..f152876 100755 --- a/manage +++ b/manage @@ -17,7 +17,7 @@ fi source "${DIRECTORY}/api" || error "failed to source ${DIRECTORY}/api" #remove old mcpi repositories - this runonce is here so that terminal-only users will still receive the fix. -runonce <<"EOF" +(runonce <<"EOF" if [ -f /etc/apt/sources.list.d/mcpi-revival.list ] && cat /etc/apt/sources.list.d/mcpi-revival.list | grep -qF 'https://mcpirevival.tk/mcpi-packages' ;then echo 'deb [trusted=yes] https://mcpi-revival.github.io/mcpi-packages/ buster main' | sudo tee /etc/apt/sources.list.d/mcpi-revival.list elif [ -f /etc/apt/sources.list.d/mcpi-revival.list ] && cat /etc/apt/sources.list.d/mcpi-revival.list | grep -qF 'https://mcpi-revival.github.io/mcpi-packages/debs' ;then @@ -27,6 +27,7 @@ runonce <<"EOF" sudo rm -f /etc/apt/sources.list.d/Alvarito050506_mcpi-devs.list fi EOF +) &>/dev/null & mkdir -p "${DIRECTORY}/data/status" "${DIRECTORY}/data/update-status" "${DIRECTORY}/logs" #remove week-old logfiles