minor updates in make_deb_pacakge.sh

This commit is contained in:
fbsanchez 2020-01-08 19:36:15 +01:00
parent aac8acfd19
commit 8563ff52fb
2 changed files with 21 additions and 2 deletions

View File

@ -20,8 +20,13 @@ echo "Test if you has the tools for to make the packages."
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
if [ $? = 1 ]
then
echo "No found \"dpkg-deb\" aplication, please install."
exit 1
if [ "$DPKG_DEB" == "" ]; then
echo "No found \"dpkg-deb\" aplication, please install."
exit 1
fi
# Use dockerized app.
alias dpkg-deb="eval $DPKG_DEB"
else
echo "Found \"dpkg-debs\"."
fi

View File

@ -64,6 +64,20 @@ mkdir temp_package
if [ $package_pandora -eq 1 ]
then
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
if [ $? = 1 ]
then
if [ "$DPKG_DEB" == "" ]; then
echo "No found \"dpkg-deb\" aplication, please install."
exit 1
fi
# Use dockerized app.
alias dpkg-deb="eval $DPKG_DEB"
else
echo "Found \"dpkg-debs\"."
fi
mkdir -p temp_package/usr/bin/
mkdir -p temp_package/usr/sbin/
mkdir -p temp_package/etc/init.d/