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/apps/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/installer/apps/zulip-5.6-offirepo
#!/bin/bash

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


appPath=/home/zulip/deployments
rootDir=$(rootDir)

echo "Downloading Zulip from original repo" | log
cd $(mktemp -d)
curlDownload https://www.zulip.org/dist/releases/zulip-server-5.6.tar.gz
waitOrStop 0 "File not downloaded from official sources"
tar -xzvf zulip-server-5.6.tar.gz
waitOrStop 0 "Failed to extract archive"
echo "Installing Zulip Application" | log
./zulip-server-*/scripts/setup/install --self-signed-cert --email=${ADMINEMAIL} --hostname=${CWM_DOMAIN}
sleep 20
waitOrStop 0 "Failed to install Zulip"

webui=$(su -c "/home/zulip/deployments/next/manage.py generate_realm_creation_link" -s /bin/sh zulip | grep https)

echo "Configuring Nginx VirtualHost" | log
cp $rootDir/tweaks/extras/zulip/zulip.conf /etc/nginx/sites-enabled/
unlink /etc/nginx/sites-enabled/zulip-enterprise
sed -i "s/ServerDomain/${CWM_DOMAIN}/g" /etc/nginx/sites-enabled/zulip.conf
service nginx restart
waitOrStop 0 "Failed to restart NGINX"

descriptionAppend "Zulip application directory: ${appPath}/"
descriptionAppend "Zulip Web UI:${webui}"
descriptionAppend " "

tagScript success

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit