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: 9ff41cbdf8f095f88a114722b7b9d684777496ad
4
- data.tar.gz: bfb0dba1711e7e13a97f6ffafbdd6a314dbd14ba
3
+ metadata.gz: 23844722aa6ae00f65c0ba253e5b61375458409d
4
+ data.tar.gz: 2314d6c83ed16118ecafbab03736928390d11432
5
5
  SHA512:
6
- metadata.gz: 471662ccb1b43f1a69a94cc709ac568da1097dfef4f46c7eea500e87a487ec69fa916689923558e687831c3e8c1b3801d3ea5c781bd85c2b17e92abf18d45244
7
- data.tar.gz: 9de780d8349cb62a0ce587a3df53d370134182d3aa35f5eace340b11db2eabc589b5df6c2537c593cb4965e5c3de911a9c048d1c84b64d0a66f3f0b2942623e4
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
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Minecraft
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-minecraft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seiei Higa