HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //var/packages/HyperBackup/WIZARD_UIFILES/uninstall_uifile_rus.sh
#!/bin/sh
# Copyright (c) 2000-2020 Synology Inc. All rights reserved.

FILES_TO_REMOVE=("Все настройки задачи Hyper Backup") # add more entries if needed
UNINSTALL_WIZARD_KEEP_DESCRIPTION=""
UNINSTALL_WIZARD_KEEP_LABEL="Примечание"

files_to_remove_list=""

if [ ${#FILES_TO_REMOVE[@]} -ne 0 ]; then
    for file in "${FILES_TO_REMOVE[@]}"; do
        files_to_remove_list+="<li>$file</li>"
    done
fi

files_to_keep_html=""

if [ -n "$UNINSTALL_WIZARD_KEEP_DESCRIPTION" ]; then
    files_to_keep_html+="<span class=\\\"syno-pkg-note\\\">$UNINSTALL_WIZARD_KEEP_LABEL</span>: $UNINSTALL_WIZARD_KEEP_DESCRIPTION"
fi

read -r -d '' uninstallPage <<EOF
[{
    "step_title": "Uninstall Package",
    "items": [{
		"desc": "pkgmgr:uninstall_wizard_page_description"
	},{
		"desc": "<ul class=\"synopkg-ul-list\">$files_to_remove_list</ul>"
	},{
        "type": "multiselect",
        "subitems": [{
            "key": "pkgwizard_remove_config",
            "desc": "pkgmgr:uninstall_wizard_confirm_description"
        }]
    },{
		"desc": "$files_to_keep_html"
	}]
}]
EOF

/bin/echo "${uninstallPage}" > ${SYNOPKG_TEMP_LOGFILE}

exit 0