. /usr/syno/bin/jsoncmd
PRIVATE_LOCATION="/var/packages/ProxyServer/target"

importPath=$(jget "${SYNOPKG_BKP_INPUT}" ".temp_path")
if [ $? -ne 0 ];then
        jerr "bad parameters"
        exit 1
fi

restore()
{
        local PROXY_SERVER_CONF_DIR="${PRIVATE_LOCATION}/squid/etc"

        if [ -d ${importPath} -a -d ${PROXY_SERVER_CONF_DIR} ];then
                /bin/cp -f ${importPath}/* ${PROXY_SERVER_CONF_DIR}
        fi
}

main()
{
        restore

        exit 0
}
main

