From 2ee7ed4cecf6b3be03da13b775feed51f434fa39 Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 3 May 2024 21:24:09 +0200 Subject: [PATCH] debug check if script is running from its own directory --- README.md | 2 +- install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f3b1976..65a44ba 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/install.sh b/install.sh index 29d892c..e79e7ef 100644 --- a/install.sh +++ b/install.sh @@ -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