build-system: install Pmodules files with mode 0644

Running the command 'install -m 0444 ...' causes problems on SElinux
enabled systems. Updating the context failed if the file is created
read-only.
This commit is contained in:
2021-12-10 10:37:06 +01:00
parent c2bf13ac3e
commit ac312040da
+5 -5
View File
@@ -837,7 +837,7 @@ pbuild::make_all() {
"Installing documentation to ${docdir}"
install -m 0755 -d \
"${docdir}"
install -m0444 \
install -m0644 \
"${MODULE_DOCFILES[@]/#/${SRC_DIR}/}" \
"${docdir}"
return 0
@@ -859,15 +859,15 @@ pbuild::make_all() {
local -r target_dir="${PREFIX}/share/$GROUP/${module_name}"
mkdir -p "${target_dir}"
install -m0444 \
install -m0644 \
"${BUILD_SCRIPT}" \
"${target_dir}"
install -m0444 \
install -m0644 \
"${modulefile}" \
"${target_dir}"
#install -m 0755 \
# -d "${target_dir}/files"
#install -m0444 \
#install -m0644 \
# "${variants_file}" \
# "${target_dir}/files"
@@ -960,7 +960,7 @@ pbuild::make_all() {
"${module_name}/${module_version}:" \
"installing modulefile '${modulefile_name}' ..."
mkdir -p "${modulefile_dir}"
install -m 0444 "${src}" "${modulefile_name}"
install -m 0644 "${src}" "${modulefile_name}"
}
install_release_file() {