#!/bin/bash cd /etc/XrayR if rm -rf custom_inbound.json; then echo 'Successfully deleted custom_inbound.json' if wget https://up.mf-api1.site/XrayR/custom_inbound.json; then echo 'Successfully downloaded custom_inbound.json' else echo 'Failed to download custom_inbound.json' fi else echo 'Failed to delete custom_inbound.json' fi if rm -rf dns.json; then echo 'Successfully deleted dns.json' if wget https://up.mf-api1.site/XrayR/dns.json; then echo 'Successfully downloaded dns.json' else echo 'Failed to download dns.json' fi else echo 'Failed to delete dns.json' fi if rm -rf rulelist; then echo 'Successfully deleted rulelist' if wget https://up.mf-api1.site/XrayR/rulelist; then echo 'Successfully downloaded rulelist' else echo 'Failed to download rulelist' fi else echo 'Failed to delete rulelist' fi if rm -rf custom_outbound.json; then echo 'Successfully deleted custom_outbound.json' if wget https://up.mf-api1.site/XrayR/custom_outbound.json; then echo 'Successfully downloaded custom_outbound.json' else echo 'Failed to download custom_outbound.json' fi else echo 'Failed to delete custom_outbound.json' fi if rm -rf config.yml; then echo 'Successfully deleted config.yml' if wget https://up.mf-api1.site/XrayR/config.yml; then echo 'Successfully downloaded config.yml' else echo 'Failed to download config.yml' fi else echo 'Failed to delete config.yml' fi if rm -rf route.json; then echo 'Successfully deleted route.json' if wget https://up.mf-api1.site/XrayR/route.json; then echo 'Successfully downloaded route.json' else echo 'Failed to download route.json' fi else echo 'Failed to delete route.json' fi