[PATCH 1 of 3] Preliminary implemented SYSDATAPATH

Wald Commits scm-commit at wald.intevation.org
Thu Jul 3 11:02:06 CEST 2014


# HG changeset patch
# User Sascha Wilde <wilde at intevation.de>
# Date 1404375476 -7200
# Node ID feaabee15e72c7392fb85aa54d0db3d30a20bff3
# Parent  3777482dc306c9358d99c8c60ab1f7d973ba6e4b
Preliminary implemented SYSDATAPATH.

diff -r 3777482dc306 -r feaabee15e72 packaging/linux-installer.inc.in
--- a/packaging/linux-installer.inc.in	Wed Jul 02 19:32:16 2014 +0200
+++ b/packaging/linux-installer.inc.in	Thu Jul 03 10:17:56 2014 +0200
@@ -7,6 +7,9 @@
 CFGPATH="${XDG_CONFIG_HOME:-$HOME/.config}/BSI"
 DATAPATH="${XDG_DATA_HOME:-$HOME/.local/share}/BSI/TrustBridge"
 SYSCFGPATH="/etc/TrustBridge"
+# FIXME:
+# Set the real data path for system wide installation once its known.
+SYSDATAPATH="$DATAPATH"
 INSTCFGNAME="TrustBridge-inst.cfg"
 FORCE=0
 SYSINST=0
@@ -135,8 +138,7 @@
   if [ $SYSINST -eq 1 ] ; then
       inst_default_prefix="$SYSDEFAULT_PREFIX"
       instcfg_path="${SYSCFGPATH}"
-      # TODO: where is the system wide installation data path?
-      instdata_path="${SYSCFGPATH}"
+      instdata_path="${SYSDATAPATH}"
   else
     inst_default_prefix="$DEFAULT_PREFIX"
     instcfg_path="${CFGPATH}"


More information about the Trustbridge-commits mailing list