mirror of
https://github.com/YunoHost-Apps/agendav_ynh.git
synced 2024-09-03 20:36:12 +02:00
15 lines
321 B
Bash
Executable file
15 lines
321 B
Bash
Executable file
#!/bin/bash
|
|
|
|
PHPCLI=`which php-cli 2>/dev/null`
|
|
if [ "x$PHPCLI" == "x" ]; then
|
|
PHPCLI=`which php 2>/dev/null`
|
|
fi
|
|
|
|
# Find path to web/public dir
|
|
realpath() {
|
|
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
|
}
|
|
|
|
PUBLIC_DIR=`realpath "$0"|sed 's_agendavcli\$__g'`../web/public
|
|
|
|
$PHPCLI "${PUBLIC_DIR}"/index.php cli ${1-}
|