debug check if script is running from its own directory

This commit is contained in:
Valentin 2024-05-03 21:24:09 +02:00
parent 27ca060802
commit 2ee7ed4cec
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ On a fresh install as root user using
`git clone https://gitea.valentin-le-moign.fr/val/deployment_dcdn_static`
`cd deployment-dcdn`
`cd deployment-dcdn_static`
`chmod u+x install.sh`

View File

@ -21,7 +21,7 @@ if [ "$EUID" -ne 0 ]; then
exit
fi
if [ "$(dirname "$0")" != "$(pwd)" ]; then
if [ "$(dirname "$(readlink -f "$0")")" != "$(pwd)" ]; then
echo "Please run this script from its directory."
exit
fi