From 97d79cdbcfc4ad6e20cd463195b683862030b636 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Sat, 16 Jan 2021 02:35:04 +0100 Subject: [PATCH] updated tools folder, fixed openresty conf --- Server/Tools/adduser | 0 Server/config/openresty.conf | 2 +- Server/install.sh | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 Server/Tools/adduser diff --git a/Server/Tools/adduser b/Server/Tools/adduser old mode 100644 new mode 100755 diff --git a/Server/config/openresty.conf b/Server/config/openresty.conf index 911aab1..ab64042 100644 --- a/Server/config/openresty.conf +++ b/Server/config/openresty.conf @@ -8,7 +8,7 @@ events { http { include mime.types; default_type application/octet-stream; - error_log /var/log/nginx/error.log; + error_log /var/log/nginx_error.log; client_body_temp_path /var/run/openresty/nginx-client-body; proxy_temp_path /var/run/openresty/nginx-proxy; diff --git a/Server/install.sh b/Server/install.sh index 71d98f1..ec48c06 100644 --- a/Server/install.sh +++ b/Server/install.sh @@ -32,6 +32,8 @@ systemctl enable openresty mongod rm /etc/openresty/nginx.conf wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/nginx.env -O /opt/ShellHub/nginx.env mv config/openresty.conf /etc/openresty/nginx.conf +mkdir /var/run/openresty +echo "d /var/run/openresty 0755 root root - -" > /usr/lib/tmpfiles.d/php-custom.conf echo " 127.0.0.1 ui api ssh mongo" > /etc/hosts systemctl start openresty mongod @@ -43,7 +45,7 @@ wget https://git.bprieshof.nl/ci/Releases/ShellHub/"$RelVer"/BinServices/webui.t chmod +x /opt/ShellHub/ShellHubAPI chmod +x /opt/ShellHub/ShellHubSSH tar -zxf /tmp/webui.tar.gz -C /opt/ShellHub/ui -mv Tools /opt/ShellHub/tools +mv Tools/* /opt/ShellHub/tools/ ##Generating keys openssl genrsa -out /opt/ShellHub/keys/api_private_key 2048