better directory struct
This commit is contained in:
48
ops/cookbooks/hosting/recipes/mkdir.rb
Normal file
48
ops/cookbooks/hosting/recipes/mkdir.rb
Normal file
@@ -0,0 +1,48 @@
|
||||
directory '/opt/theta42' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '0755'
|
||||
action :create
|
||||
end
|
||||
|
||||
directory '/opt/theta42/bin' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '0755'
|
||||
action :create
|
||||
end
|
||||
|
||||
directory '/home/gitea' do
|
||||
owner 'gitea'
|
||||
group 'gitea'
|
||||
mode '0755'
|
||||
action :create
|
||||
end
|
||||
|
||||
directory '/opt/theta42/gitea' do
|
||||
owner 'gitea'
|
||||
group 'gitea'
|
||||
mode '0755'
|
||||
action :create
|
||||
end
|
||||
|
||||
directory '/opt/theta42/gitea/conf' do
|
||||
owner 'gitea'
|
||||
group 'gitea'
|
||||
mode '0755'
|
||||
action :create
|
||||
end
|
||||
|
||||
directory '/opt/theta42/gitea/data' do
|
||||
owner 'gitea'
|
||||
group 'gitea'
|
||||
mode '0755'
|
||||
action :create
|
||||
end
|
||||
|
||||
directory '/opt/theta42/gitea/custom' do
|
||||
owner 'gitea'
|
||||
group 'gitea'
|
||||
mode '0755'
|
||||
action :create
|
||||
end
|
||||
Reference in New Issue
Block a user