Skip to content

Commit

Permalink
api: add broken apt packages check to is_supported_system
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Nov 25, 2023
1 parent 9c63720 commit 1d0fc66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api
Original file line number Diff line number Diff line change
Expand Up @@ -2630,6 +2630,12 @@ All apt based application installs will fail. Unless you have a backup of your /
Pi-Apps does NOT support systems without ALL of $__os_codename, $__os_codename-updates, and $__os_codename-security dists present in the sources.list
Please refer to the default sources.list for Ubuntu and restore all required dists."
return 1
elif ! apt-get --dry-run check &>/dev/null ; then
echo "Congratulations, Linux tinkerer, you broke your system. There are packages on your system that are in a broken state.
Refer to the output below for any potential solutions.
$(apt-get --dry-run check)"
return 1
elif [ "$(df -a / -B 1 --output=avail | tail -1 | tr -d ' ')" -lt $((500*1024*1024)) ];then
echo "Your system drive has less than 500MB of free space. Watch out for "\""disk full"\"" errors."
return 1
Expand Down

0 comments on commit 1d0fc66

Please sign in to comment.