sapoku 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sapoku.rb +3 -3
- metadata +1 -1
data/lib/sapoku.rb
CHANGED
@@ -36,9 +36,9 @@ class Gyro
|
|
36
36
|
|
37
37
|
# actually creates and initializes the container
|
38
38
|
def bootstrap
|
39
|
-
system("lxc-clone -o frox -n #{@app_name}")
|
39
|
+
system("sudo lxc-clone -o frox -n #{@app_name}")
|
40
40
|
create_config
|
41
|
-
system("lxc-start -n #{@app_name} -d")
|
41
|
+
system("sudo lxc-start -n #{@app_name} -d")
|
42
42
|
create_iptables
|
43
43
|
end
|
44
44
|
|
@@ -68,7 +68,7 @@ class Gyro
|
|
68
68
|
f.write erb.result(self.get_binding)
|
69
69
|
end
|
70
70
|
|
71
|
-
system("mv #{@name}_config /var/lib/lxc/#{@name}/config")
|
71
|
+
system("sudo mv #{@name}_config /var/lib/lxc/#{@name}/config")
|
72
72
|
end
|
73
73
|
|
74
74
|
# create the new iptables rule to fwd accesses into the container
|