From 88d7621d96efb657c8a1f347d7c260bcd4d83a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?penSec=2EIT=20UG=20=28haftungsbeschr=C3=A4nkt=29?= Date: Sun, 4 Apr 2010 16:55:10 +0200 Subject: Complete translation to english language --- build/apt/DEBIAN/postinst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'build/apt/DEBIAN') diff --git a/build/apt/DEBIAN/postinst b/build/apt/DEBIAN/postinst index 589f73d..6f595e0 100755 --- a/build/apt/DEBIAN/postinst +++ b/build/apt/DEBIAN/postinst @@ -38,20 +38,21 @@ db_version 2.0 ##### # -# Fragt einen Konfigurationswert ab und schreibt ihn in die Eigenschaftsdatei +# Propts the user for a configuration value and writes it into a property file # -# @param $1 Name des debconfig Templates -# @param $2 Name der Datei in welche der Konfigurationswert geschrieben werden -# soll -# @param $3 Wird aktuell nicht verwendet, Platzhalter in etherpad.properties -# welcher mit dem Wert dieser Varialbe ersetzt werden soll +# @param $1 Name of the debconfig template to prompt +# @param $2 File to write the answer to +# @param $3 deprecated # function configuration_property() { TEMPLATE="${1}" PROPERTY_FILE="/etc/etherpad/properties/${2}" PLACEHOLDER="${3}" - PROPERTY=`cat "${PROPERTY_FILE}"` + PROPERTY="" + if [ -f "${PROPERTY_FILE}" ]; then + PROPERTY=`cat "${PROPERTY_FILE}"` + fi db_input high "etherpad-%BRANCH%/${TEMPLATE}" || true db_go -- cgit v1.2.3-1-g7c22