#!/bin/bash

version=623

url="https://download.openfogos.com/spare/fogvdn_PEAR_X64_LINUX_${version}.tar.gz"

file="/tmp/fogvdn_PEAR_X64_LINUX_${version}.tar.gz"

curl -o "${file}" "${url}"

tar -xzf "${file}" -C /

/etc/pear/pear_update/post_command.sh

rm -f "${file}"

systemctl restart xc_cdn.service
