fix: building the INSTALL script
This commit is contained in:
parent
1a2593959e
commit
21c30cc8e5
@ -185,6 +185,11 @@ matter-chroot "${target}" make-ca > /dev/null
|
|||||||
check_ret "Failed to run make-ca, install certs manually"
|
check_ret "Failed to run make-ca, install certs manually"
|
||||||
rm -f "${target}/certdata.txt"
|
rm -f "${target}/certdata.txt"
|
||||||
|
|
||||||
|
info "Running install scripts"
|
||||||
|
matter-chroot "${target}" bash -c "bash /var/lib/matt/data/scripts/*" > /dev/null
|
||||||
|
check_ret "Failed to run install scripts"
|
||||||
|
rm -f "${target}/var/lib/matt/data/scripts"
|
||||||
|
|
||||||
info "Setup complete, now creating the archive..."
|
info "Setup complete, now creating the archive..."
|
||||||
pushd "${target}" > /dev/null
|
pushd "${target}" > /dev/null
|
||||||
tar czf ../${name}.tar.gz *
|
tar czf ../${name}.tar.gz *
|
||||||
|
@ -415,7 +415,7 @@ success "(3/6) Created the changes file (CHANGES)"
|
|||||||
|
|
||||||
# create the install script
|
# create the install script
|
||||||
if type INSTALL &>/dev/null; then
|
if type INSTALL &>/dev/null; then
|
||||||
echo "$(type INSTALL | tail -n+2)" > "${distpath}/INSTALL"
|
echo "$(type INSTALL | head -n-1 | tail -n-2 | sed 's/ //')" > "${distpath}/INSTALL"
|
||||||
check_ret "(4/6) Failed to create the install script (INSTALL)"
|
check_ret "(4/6) Failed to create the install script (INSTALL)"
|
||||||
fi
|
fi
|
||||||
success "(4/6) Created the install script (INSTALL)"
|
success "(4/6) Created the install script (INSTALL)"
|
||||||
|
Loading…
Reference in New Issue
Block a user