Skip to content

Commit

Permalink
Sleep and stop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Sep 29, 2023
1 parent 1de33f5 commit 2d95d16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .templates/00-smb_mounts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,15 @@ if bashio::config.has_value 'networkdisks'; then

# Error code
mount -t cifs -o "rw,file_mode=0775,dir_mode=0775,username=$CIFS_USERNAME,password=${CIFS_PASSWORD},nobrl$DOMAINVAR" "$disk" /mnt/"$diskname" 2>ERRORCODE || MOUNTED=false
bashio::log.fatal "Error read : $(<ERRORCODE)"
bashio::log.fatal "Error read : $(<ERRORCODE), addon will stop in 1 min"
rm ERRORCODE*

# clean folder
umount "/mnt/$diskname" 2>/dev/null || true
rmdir "/mnt/$diskname" || true

sleep 1m
bashio::addon.stop
fi

done
Expand Down

0 comments on commit 2d95d16

Please sign in to comment.