Commit 531bdc22 authored by Victor Penso's avatar Victor Penso Committed by Victor Penso
Browse files

minor fixes

parent 08b13461
......@@ -114,7 +114,7 @@ build_directory=/usr/local/src
mkdir -p $build_directory 2>/dev/null
# source code archive
source_file=$build_directory/cvmfs_$version.tar.gz
source_file=$build_directory/cvmfs_$version.orig.tar.gz
# get the source code
if [ ! -f $source_file ] ; then
_debug "Download CVMFS $version to $build_directory"
......
......@@ -18,7 +18,7 @@
#
# Install from source if a specific version is defined
include_recipe 'cvmfs::install' unless node.cvmfs.version.empty?
include_recipe 'cvmfs::install'
if node.cvmfs.server.repos.empty?
include_recipe 'cvmfs::client'
......
......@@ -17,14 +17,17 @@
# limitations under the License.
#
unless ::File.exists? '/etc/cvmfs/default.conf'
cookbook_file '/usr/local/src/cvmfs-install' do
source 'cvmfs-install'
mode '0755'
unless node.cvmfs.version.empty?
unless ::File.exists? '/etc/cvmfs/default.conf'
cookbook_file '/usr/local/src/cvmfs-install' do
source 'cvmfs-install'
mode '0755'
end
# This is a self-contained shell script installing
# CVMFS from a source code tar ball downloaded
# from the developers web-site.
execute "/usr/local/src/cvmfs-install #{node.cvmfs.version}"
end
# This is a self-contained shell script installing
# CVMFS from a source code tar ball downloaded
# from the developers web-site.
execute "/usr/local/src/cvmfs-install #{node.cvmfs.version}"
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment