From 912c1dbd0bbcd90e3e2ae0e6edcc889f9f96fba1 Mon Sep 17 00:00:00 2001 From: viennet Date: Sun, 6 Dec 2020 15:28:49 +0100 Subject: [PATCH] Better SCODOC_DIR init --- config/config.sh | 4 ++-- config/configure_systemd.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.sh b/config/config.sh index 4b8368b88..423cd166c 100644 --- a/config/config.sh +++ b/config/config.sh @@ -10,8 +10,8 @@ export PATH="${PATH}":/usr/sbin:/sbin # ScoDoc: environment variables umask 0022 -export SCODOC_DIR=${PWD%/*} -# normalement: /opt/scodoc/Products/ScoDoc +export SCODOC_DIR=/opt/scodoc/Products/ScoDoc + export SCODOC_VAR_DIR=$(realpath "$SCODOC_DIR/../../var/scodoc") # = /opt/scodoc/var/scodoc export SCODOC_VERSION_DIR="${SCODOC_VAR_DIR}/config/version" diff --git a/config/configure_systemd.sh b/config/configure_systemd.sh index 235694188..ed0b0d4f4 100755 --- a/config/configure_systemd.sh +++ b/config/configure_systemd.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Modify ScoDoc install tu use systemd +# Modify ScoDoc install to use systemd # E. Viennet, 2020-12-04 source config.sh source utils.sh