1
0
forked from ScoDoc/ScoDoc

Fix: config scripts when working in a symlinked directory

This commit is contained in:
Emmanuel Viennet 2021-01-23 16:49:10 +01:00
parent 94238578ec
commit e4168f0786
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@ umask 0022
export SCODOC_DIR=/opt/scodoc/Products/ScoDoc export SCODOC_DIR=/opt/scodoc/Products/ScoDoc
export SCODOC_VAR_DIR=$(realpath "$SCODOC_DIR/../../var/scodoc") export SCODOC_VAR_DIR=$(realpath -L "$SCODOC_DIR/../../var/scodoc")
# = /opt/scodoc/var/scodoc # = /opt/scodoc/var/scodoc
export SCODOC_VERSION_DIR="${SCODOC_VAR_DIR}/config/version" export SCODOC_VERSION_DIR="${SCODOC_VAR_DIR}/config/version"
export SCODOC_LOGOS_DIR="${SCODOC_VAR_DIR}/config/logos" export SCODOC_LOGOS_DIR="${SCODOC_VAR_DIR}/config/logos"

View File

@ -82,6 +82,7 @@ then
exit 0 exit 0
else else
echo 'Attention: pas de configuration trouvee pour "'"$DEPT"'"' echo 'Attention: pas de configuration trouvee pour "'"$DEPT"'"'
echo " fichier cherché: $cfg_pathname"
echo " => ne fait rien." echo " => ne fait rien."
exit 0 exit 0
fi fi