mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-13 17:01:43 +00:00
2019-01-04
This commit is contained in:
@@ -8,7 +8,7 @@ PHPBIN=/opt/bin/spawn-fcgi
|
|||||||
NGINXBIN=/opt/sbin/nginx
|
NGINXBIN=/opt/sbin/nginx
|
||||||
NGINXCONF=/opt/etc/nginx/nginx.conf
|
NGINXCONF=/opt/etc/nginx/nginx.conf
|
||||||
PHPCONF=/opt/etc/php.ini
|
PHPCONF=/opt/etc/php.ini
|
||||||
WWW=/opt/share/nginx/html
|
WWW=/opt/share/nginx/html/kodexplorer
|
||||||
CONF="/opt/etc/nginx/vhost/kodexplorer.conf"
|
CONF="/opt/etc/nginx/vhost/kodexplorer.conf"
|
||||||
path=$(mbdb get ${appname}.main.path)
|
path=$(mbdb get ${appname}.main.path)
|
||||||
port=$(mbdb get ${appname}.main.port) || port=81
|
port=$(mbdb get ${appname}.main.port) || port=81
|
||||||
@@ -67,7 +67,7 @@ config_nginx() {
|
|||||||
server_name kodexplorer;
|
server_name kodexplorer;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /opt/share/nginx/html;
|
root /opt/share/nginx/html/kodexplorer;
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ config_nginx() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
root /opt/share/nginx/html;
|
root /opt/share/nginx/html/kodexplorer;
|
||||||
fastcgi_pass 127.0.0.1:9009;
|
fastcgi_pass 127.0.0.1:9009;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
@@ -93,6 +93,7 @@ config_nginx() {
|
|||||||
detect_webfiles() {
|
detect_webfiles() {
|
||||||
if [ ! -d $WWW/app/kod/ ]; then
|
if [ ! -d $WWW/app/kod/ ]; then
|
||||||
logsh "【$service】" "未检测到${appname}文件,正在下载"
|
logsh "【$service】" "未检测到${appname}文件,正在下载"
|
||||||
|
[ ! -d $WWW ] && mkdir $WWW
|
||||||
wgetsh $WWW/kodexplorer.zip $mburl/appsbin/kodexplorer.zip
|
wgetsh $WWW/kodexplorer.zip $mburl/appsbin/kodexplorer.zip
|
||||||
[ $? -ne 0 ] && logsh "【$service】" "${appname}文件下载失败" && stop
|
[ $? -ne 0 ] && logsh "【$service】" "${appname}文件下载失败" && stop
|
||||||
unzip $WWW/kodexplorer.zip -d $WWW
|
unzip $WWW/kodexplorer.zip -d $WWW
|
||||||
|
|||||||
BIN
appsbin/kodexplorer.zip
Normal file → Executable file
BIN
appsbin/kodexplorer.zip
Normal file → Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user