diff --git a/.templates/ha_automatic_packages.sh b/.templates/ha_automatic_packages.sh index cb65c7999..1043fe1f1 100755 --- a/.templates/ha_automatic_packages.sh +++ b/.templates/ha_automatic_packages.sh @@ -224,10 +224,10 @@ fi ####################### # Install micro texteditor -curl https://getmic.ro | bash || true -mv micro /usr/bin || true -micro -plugin install bounce || true -micro -plugin install filemanager || true +if ! command -v "micro" &> /dev/null; then + curl https://getmic.ro | bash || true + mv micro /usr/bin || true +fi for files in "/etc/services.d" "/etc/cont-init.d"; do