Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chef Cookbooks
typo3-solr
Commits
a58c90ac
Commit
a58c90ac
authored
Feb 15, 2019
by
Paul Ilea
Browse files
[BUGFIX] Add handling for full solr ext version number
parent
29f22046
Pipeline
#37
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
providers/app.rb
View file @
a58c90ac
...
...
@@ -75,6 +75,10 @@ action :add do
end
# Copy extension configuration to the final location
full_extension_version
=
new_resource
.
extension
if
full_extension_version
.
count
(
'.'
)
==
1
full_extension_version
=
full_extension_version
+
'.0'
end
bash
'Copy TYPO3 Solr configuration'
do
user
'root'
timeout
3000000
...
...
@@ -82,8 +86,8 @@ action :add do
code
<<-
EOF
cd
#{
node
[
'typo3_solr'
][
'solr'
][
'solr_home'
]
}
;
rm -rf server/solr/configsets/ && cp -a
#{
Chef
::
Config
[
'file_cache_path'
]
}
/ext-solr-
#{
new_resource
.
extension
}
.0
/Resources/Private/Solr/configsets server/solr/configsets/;
cp -a
#{
Chef
::
Config
[
'file_cache_path'
]
}
/ext-solr-
#{
new_resource
.
extension
}
.0
/Resources/Private/Solr/solr.xml server/solr/;
rm -rf server/solr/configsets/ && cp -a
#{
Chef
::
Config
[
'file_cache_path'
]
}
/ext-solr-
#{
full_extension_version
}
/Resources/Private/Solr/configsets server/solr/configsets/;
cp -a
#{
Chef
::
Config
[
'file_cache_path'
]
}
/ext-solr-
#{
full_extension_version
}
/Resources/Private/Solr/solr.xml server/solr/;
chown solr:root -R
#{
node
[
'typo3_solr'
][
'solr'
][
'solr_home'
]
}
;
EOF
end
...
...
@@ -120,4 +124,4 @@ action :add do
# done
new_resource
.
updated_by_last_action
(
true
)
end
\ No newline at end of file
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment