build.sh: Remove -C from install

Not available in Busybox when building under Alpine Linux
This commit is contained in:
fox.cpp 2025-01-25 01:07:46 +03:00
parent 96bd83316b
commit 3e5044ee8e
No known key found for this signature in database
GPG key ID: 5B991F6215D2FCC0

View file

@ -163,14 +163,14 @@ install() {
if command -v go >/dev/null 2>/dev/null; then
set -e
if [ "$(go env GOOS)" = "linux" ]; then
command install -C -m 0755 -d "${destdir}/${prefix}/lib/systemd/system/"
command install -C -m 0644 "${builddir}"/systemd/*.service "${destdir}/${prefix}/lib/systemd/system/"
command install -m 0755 -d "${destdir}/${prefix}/lib/systemd/system/"
command install -m 0644 "${builddir}"/systemd/*.service "${destdir}/${prefix}/lib/systemd/system/"
fi
else
set -e
if [ "$(uname -s)" = "Linux" ]; then
command install -C -m 0755 -d "${destdir}/${prefix}/lib/systemd/system/"
command install -C -m 0644 "${builddir}"/systemd/*.service "${destdir}/${prefix}/lib/systemd/system/"
command install -m 0755 -d "${destdir}/${prefix}/lib/systemd/system/"
command install -m 0644 "${builddir}"/systemd/*.service "${destdir}/${prefix}/lib/systemd/system/"
fi
fi