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/plesk-17.8-offisrc
#!/bin/bash

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

rootDir=$(rootDir)

echo "Preparing FQDN for installation process" | log
sed -i "2i${CWM_SERVERIP} ${CWM_DOMAIN}" /etc/hosts
hostnamectl set-hostname ${CWM_DOMAIN}

echo "Running Plesk Official Installer" | log
curlDownload https://autoinstall.plesk.com/plesk-installer
waitOrStop 0 "File not downloaded from official source"
chmod +x plesk-installer
sh plesk-installer install plesk 17.8.11 | log
waitOrStop 0 "Failed to install application"

echo "Configuring Plesk" | log
plesk bin init_conf --init -default-ip ${CWM_SERVERIP} -iface eth0 -trial_license true  -ip-type shared -passwd ${ADMINPASSWORD} -email ${ADMINEMAIL} | log
waitOrStop 0 "Configuration procedure failed"

echo "Updating hostname" | log
plesk bin server_pref --update -hostname ${CWM_DOMAIN} | log
waitOrStop 0 "Hostname did not update"

echo "Checking Plesk Configuration" | log
plesk bin init_conf -c | log
waitOrStop 0 "Configuration failed to pass test"

echo "Adding descriptions" | log
descriptionAppend "Plesk Web UI: ${CWM_SERVERIP}:8443"
descriptionAppend "Plesk Domain Address: ${CWM_DOMAIN}:8443"
descriptionAppend "Plesk Username: root"
descriptionAppend "Plesk Password: ${ADMINPASSWORD}"
descriptionAppend " "


tagScript success

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit