403Webshell
Server IP : 104.129.129.72  /  Your IP : 216.73.216.229
Web Server : LiteSpeed
System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : answe8064 ( 1002)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/installer/services/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/installer/services/nginx-1.14-offirepo
#!/bin/bash

if [ -f "include/startup.sh" ]; then
    . include/startup.sh
elif [ -f "../include/startup.sh" ]; then
    . ../include/startup.sh
fi

appPath=/var/www/html
nginxVersion=1.14.\*

echo "Adding nginx repo to apt" | log
add-apt-repository -y ppa:nginx/stable | log
apt update

echo "Installing nginx from apt" | log
installPackage nginx-full=$nginxVersion
waitOrStop 0 "Failed apt install: nginx-full"

echo "Changing ownership of $appPath to www-data user" | log
if [ -d "$appPath" ]; then
    chown -R www-data:www-data $appPath
fi

echo "Adding descriptions" | log

descriptionAppend "NGiNX Address: ${CWM_SERVERIP}"
descriptionAppend " "
descriptionAppend "NGiNX config files location: /etc/nginx/"
if [ -d "$appPath" ]; then
    descriptionAppend "NGiNX root Directory: $appPath/"
fi
descriptionAppend " "

tag nginx.success
tag httpd.success
tagScript success

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit