mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
65b2fce787
Snapcraft 4.0 complains about running LXD builds under sudo. So instead add the CI user to the "lxd" group and use sg to switch to that membership. Resolves: #12712
12 lines
181 B
Bash
Executable File
12 lines
181 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
sudo apt update
|
|
sudo usermod -aG lxd $USER
|
|
sudo /snap/bin/lxd.migrate -yes
|
|
sudo /snap/bin/lxd waitready
|
|
sudo /snap/bin/lxd init --auto
|
|
|