Skip to content

install.sh: Fix bee registery of /etc/files #343

Merged
merged 2 commits into from
Aug 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,14 @@ function install_symlink()

function install_etc_files()
{
(cd etc ; find * -type f) | while read -r path; do
while read -r path; do
path="${path#./}"
if [[ -x etc/$path ]]; then
install_exec etc/$path "$DESTDIR$sysconfdir/$path"
install_exec "etc/$path" "$DESTDIR$sysconfdir/$path"
else
install_data etc/$path "$DESTDIR$sysconfdir/$path"
install_data "etc/$path" "$DESTDIR$sysconfdir/$path"
fi
done
done < <(cd etc ; find ./* -type f)
}

function postinstall()
Expand Down