diff --git a/scripts/install b/scripts/install index 9ccfaaa..de9c013 100644 --- a/scripts/install +++ b/scripts/install @@ -12,6 +12,11 @@ domain=$YNH_APP_ARG_DOMAIN path=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC +# Force path to start with a / +if [ "${path:0:1}" != "/" ]; then + path="/$path" +fi + # Remove trailing slash to path path=${path%/} #force location to be / or /foo