diff --git a/etc/centos/fpm-make.sh b/etc/centos/fpm-make.sh index f0880c9..0661aa9 100755 --- a/etc/centos/fpm-make.sh +++ b/etc/centos/fpm-make.sh @@ -7,8 +7,8 @@ tempdir=$(mktemp -d /tmp/ot-XXX) make install DESTDIR=$tempdir mkdir -p $tempdir/usr/share/doc/ot-recorder -install -D README.md $tempdir/usr/share/doc/ot-recorder/README.md -install -D etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service +install -D -m644 README.md $tempdir/usr/share/doc/ot-recorder/README.md +install -D -m644 etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service name="ot-recorder" diff --git a/etc/debian/fpm-make.sh b/etc/debian/fpm-make.sh index f2dca6a..ef50a3b 100755 --- a/etc/debian/fpm-make.sh +++ b/etc/debian/fpm-make.sh @@ -6,8 +6,8 @@ tempdir=$(mktemp -d /tmp/ot-XXX) make install DESTDIR=$tempdir -install -D README.md $tempdir/usr/share/doc/ot-recorder/README.md -install -D etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service +install -D -m644 README.md $tempdir/usr/share/doc/ot-recorder/README.md +install -D -m644 etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service name="ot-recorder" # add -0 to indicate "not in Debian" as per Roger's suggestion diff --git a/etc/raspbian/fpm-make.sh b/etc/raspbian/fpm-make.sh index 3e39324..d8f6714 100755 --- a/etc/raspbian/fpm-make.sh +++ b/etc/raspbian/fpm-make.sh @@ -6,8 +6,8 @@ tempdir=$(mktemp -d /tmp/ot-XXX) make install DESTDIR=$tempdir -install -D README.md $tempdir/usr/share/doc/ot-recorder/README.md -install -D etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service +install -D -m644 README.md $tempdir/usr/share/doc/ot-recorder/README.md +install -D -m644 etc/ot-recorder.service $tempdir/usr/share/doc/ot-recorder/ot-recorder.service name="ot-recorder" # add -0 to indicate "not in Debian" as per Roger's suggestion