diff --git a/snap/local/build_and_install.sh b/snap/local/build_and_install.sh index e21ecce89..4c9754d3e 100755 --- a/snap/local/build_and_install.sh +++ b/snap/local/build_and_install.sh @@ -1,6 +1,11 @@ #!/bin/bash set -ex +if [[ -z "$TRAVIS" ]]; then + echo "This script makes global changes to the system it is run on so should only be run in CI." + exit 1 +fi + sudo /snap/bin/lxd.migrate -yes sudo /snap/bin/lxd waitready sudo /snap/bin/lxd init --auto