itamae-plugin-recipe-minecraft 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23844722aa6ae00f65c0ba253e5b61375458409d
|
4
|
+
data.tar.gz: 2314d6c83ed16118ecafbab03736928390d11432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eb5478fd19070a60825088ad9468c27fbc1d8d9bcad20c0d9c5a6f2bc07eaf59542038d57133ce6f5676bb4db5e1c2e48ebbead926d3089d78f3031b1bae388
|
7
|
+
data.tar.gz: e82936c57d416dd73c9b2441d30681d1b90031f4889cbce03b70e220d8ace2af862035f5d1f8519494bb6564ef77b4a1be6f71639da196588fa38d049c19062a
|
@@ -11,6 +11,12 @@ minecraft_path = "#{minecraft_dir}/#{filename}"
|
|
11
11
|
|
12
12
|
minecraft_user = node[:minecraft][:user] || 'minecraft'
|
13
13
|
|
14
|
+
user 'create minecraft user' do
|
15
|
+
username 'minecraft'
|
16
|
+
home minecraft_dir
|
17
|
+
system_user true
|
18
|
+
end
|
19
|
+
|
14
20
|
directory minecraft_dir do
|
15
21
|
action :create
|
16
22
|
mode '775'
|
@@ -23,12 +29,6 @@ directory "#{minecraft_dir}/backups" do
|
|
23
29
|
group minecraft_user
|
24
30
|
end
|
25
31
|
|
26
|
-
user 'create minecraft user' do
|
27
|
-
username 'minecraft'
|
28
|
-
home minecraft_dir
|
29
|
-
system_user true
|
30
|
-
end
|
31
|
-
|
32
32
|
execute "minecraft user can't login" do
|
33
33
|
command 'chsh -s /usr/sbin/nologin minecraft'
|
34
34
|
end
|