Skip to content

Commit

Permalink
Make snap more priority
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay authored and mardy committed Sep 20, 2022
1 parent 9f452fe commit 59592bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crossbuilder
Expand Up @@ -1100,16 +1100,16 @@ if ! which lxd > /dev/null ; then
echo
if [ "$REPLY" = y ]
then
if which apt-get > /dev/null 2>&1 ; then
if which snap > /dev/null 2>&1 ; then
echo "sudo snap install lxd"
sudo snap install lxd
elif which apt-get > /dev/null 2>&1 ; then
echo "sudo apt-get install -y lxd lxd-client"
sudo apt-get install -y lxd lxd-client
elif which pacman > /dev/null 2>&1 ; then
echo "sudo pacman -Syu --noconfirm lxd"
sudo pacman -Syu lxd
lxd_service_action start
elif which snap > /dev/null 2>&1 ; then
echo "sudo snap install lxd"
sudo snap install lxd
else
echo -e "${ERROR_COLOR}No known package manager found to install lxd containers.${NC}"
exit 1
Expand Down

0 comments on commit 59592bd

Please sign in to comment.