We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2d6c92 commit 46ad2deCopy full SHA for 46ad2de
1 file changed
build_lxc.sh
@@ -1,5 +1,16 @@
1
#!/usr/bin/env bash
2
3
+# Sanity check
4
+if [ "$EUID" -ne "0" ]; then
5
+ echo "This script must be run with root privileges."
6
+ exit 1
7
+fi
8
+
9
+# Warn users who aren't on natty
10
+if ! grep -q natty /etc/lsb-release; then
11
+ echo "WARNING: this script has only been tested on natty"
12
13
14
# Source params
15
source ./stackrc
16
@@ -23,10 +34,6 @@ STACKSH_PARAMS=${STACKSH_PARAMS:-}
23
34
# Option to use the version of devstack on which we are currently working
24
35
USE_CURRENT_DEVSTACK=${USE_CURRENT_DEVSTACK:-1}
25
36
26
-# Warn users who aren't on natty
27
-if ! grep -q natty /etc/lsb-release; then
28
- echo "WARNING: this script has only been tested on natty"
29
-fi
30
37
31
38
# Install deps
32
39
apt-get install -y lxc debootstrap
0 commit comments