sxmo-utils/scripts/core/sxmo_upgrade.sh
Stacy Harper 672566c206 Remove -a cause it can break the system.
If the apk cache is outdated (first installation) and you try to upgrade
with this "-a" argument without configuring a network, then apk will
just strip every packages that are not available.

It then leave the phone in a very broken state.

The -a was used to handle mainlining software from pmaport to aport
(where pmaport uses 9999 version numbers). As we do not rely that much
on those softwares (that are now mainlined), we strip this unsafe
argument.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-07-05 00:43:54 -04:00

13 lines
315 B
Bash
Executable file

#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
echo "Updating all packages from repositories"
sudo apk update
echo "Upgrading all packages"
sudo apk upgrade
echo "Upgrade complete - reboot for all changes to take effect"
read -r