reinstall snapd

This commit is contained in:
Cory Schwartz 2021-12-17 17:30:23 -08:00
parent d874c633d7
commit a03e9e34ab

View File

@ -10,7 +10,6 @@ set -x
# Become root, if we aren't already.
# Docker images will already be root. AMIs will have an SSH user account.
UID=$(id -u)
if [ x$UID != x0 ]
then
printf -v cmd_str '%q ' "$0" "$@"
@ -23,6 +22,10 @@ MANAGED_FILES=(
/etc/motd
)
# this is required on digitalocean, which does not have snap seeded correctly at this phase.
apt update
apt reinstall snapd
snap install lotus-filecoin
snap alias lotus-filecoin.lotus lotus