luci-app-kodexplorer: fix missing work directory
This commit is contained in:
parent
4253af6372
commit
8efd7e162b
@ -18,9 +18,10 @@ config_t_get() {
|
||||
echo ${ret:=$3}
|
||||
}
|
||||
|
||||
project_directory=$(config_t_get global project_directory)
|
||||
|
||||
gen_nginx_config() {
|
||||
port=$(config_t_get global port)
|
||||
project_directory=$(config_t_get global project_directory)
|
||||
cat <<-EOF > $1
|
||||
user root root;
|
||||
worker_processes 1;
|
||||
@ -77,7 +78,7 @@ gen_php_config() {
|
||||
unserialize_callback_func =
|
||||
serialize_precision = 100
|
||||
|
||||
open_basedir = $storage_device_path:/tmp/:/proc/:/usr/bin/
|
||||
open_basedir = $storage_device_path:$project_directory:/tmp/:/proc/:/usr/bin/
|
||||
disable_functions =
|
||||
disable_classes =
|
||||
expose_php = On
|
||||
@ -168,4 +169,4 @@ stop() {
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user