changeset 727:feaabee15e72

Preliminary implemented SYSDATAPATH.
author Sascha Wilde <wilde@intevation.de>
date Thu, 03 Jul 2014 10:17:56 +0200
parents 3777482dc306
children 2d64ff7e22e8
files packaging/linux-installer.inc.in
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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}"

http://wald.intevation.org/projects/trustbridge/