Access rights for binary repository files and dirs (#178)

fix typo in chmod for all binary repository dirs and files
This commit is contained in:
Timofey Turenko
2018-07-04 09:08:55 +03:00
committed by GitHub
parent 45752e0a45
commit afdf28c0b9

View File

@ -11,8 +11,8 @@ if [ "$box_type" == "RPM" ] ; then
mkdir -p $path_prefix/$platform/$platform_version/$arch/
rsync -avz --progress --delete ${unsorted_repo_dir}/$repo_name/$box/* $path_prefix/$platform/$platform_version/$arch/
env > $build_info_path
find $prefix_path/.. -type d -exec chmod 755 {}
find $prefix_path/.. -type f -exec chmod 644 {}
find $path_prefix/.. -type d -exec chmod 755 {} \;
find $path_prefix/.. -type f -exec chmod 644 {} \;
cd $path_prefix/$platform
ln -s $platform_version "$platform_version"server
ln -s $platform_version "$platform_version"Server
@ -31,8 +31,8 @@ else
mkdir -p $path_prefix/$platform_family/
rsync -avz --progress --delete ${unsorted_repo_dir}/$repo_name/$box/* $path_prefix/$platform_family/
env > $build_info_path
find $prefix_path/.. -type d -exec chmod 755 {}
find $prefix_path/.. -type f -exec chmod 644 {}
find $path_prefix/.. -type d -exec chmod 755 {}
find $path_prefix/.. -type f -exec chmod 644 {}
eval "cat <<EOF
$(<${script_dir}/templates/repository-config/deb.json.template)
" 2> /dev/null > ${path_prefix}/${platform}_${platform_version}.json