diff --git a/.templates/92-smb_mounts.sh b/.templates/92-smb_mounts.sh index 58712e18e..d3674372c 100755 --- a/.templates/92-smb_mounts.sh +++ b/.templates/92-smb_mounts.sh @@ -117,6 +117,9 @@ if bashio::config.has_value 'networkdisks'; then done - if [ -f ERRORCODE ]; then rm ERRORCODE*; fi + if [ -f ERRORCODE ]; then + rm ERRORCODE* + bashio::addon.stop + fi fi