From d017ec4081547c334ff6968c6810b4dd5d8355f2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 22 Sep 2016 18:11:31 +0100 Subject: [PATCH] Missing project name --- src/freedombone-utils-setup | 4 ++++ src/freedombone-vars | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index b78a80e3..4bed9a59 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -28,6 +28,10 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +if [ ! $PROJECT_NAME ]; then + PROJECT_NAME='freedombone' +fi + # Different system variants which may be specified within # the SYSTEM_TYPE option VARIANT_FULL="full" diff --git a/src/freedombone-vars b/src/freedombone-vars index 53b3fab5..4e01c117 100755 --- a/src/freedombone-vars +++ b/src/freedombone-vars @@ -30,9 +30,13 @@ DEFAULT_LANGUAGE=$(echo $LANG) +if [ ! $PROJECT_NAME ]; then + PROJECT_NAME='freedombone' +fi + PROJECT_INSTALL_DIR=/usr/local/bin if [ -f /usr/bin/${PROJECT_NAME} ]; then - PROJECT_INSTALL_DIR=/usr/bin + PROJECT_INSTALL_DIR=/usr/bin fi # username created by default within a debian image