debug check if script is running from its own directory
This commit is contained in:
parent
27ca060802
commit
2ee7ed4cec
|
|
@ -22,7 +22,7 @@ On a fresh install as root user using
|
||||||
|
|
||||||
`git clone https://gitea.valentin-le-moign.fr/val/deployment_dcdn_static`
|
`git clone https://gitea.valentin-le-moign.fr/val/deployment_dcdn_static`
|
||||||
|
|
||||||
`cd deployment-dcdn`
|
`cd deployment-dcdn_static`
|
||||||
|
|
||||||
`chmod u+x install.sh`
|
`chmod u+x install.sh`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ if [ "$EUID" -ne 0 ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(dirname "$0")" != "$(pwd)" ]; then
|
if [ "$(dirname "$(readlink -f "$0")")" != "$(pwd)" ]; then
|
||||||
echo "Please run this script from its directory."
|
echo "Please run this script from its directory."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue