Add missing content

pull/1/head
Dct Mei 2020-03-25 21:51:16 +08:00
parent b1b6900629
commit 9000338db2
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 4 additions and 0 deletions

View File

@ -348,6 +348,10 @@ installStartupServiceFile() {
if [[ ! -f '/etc/systemd/system/v2ray.service' ]]; then
mkdir "${TMP_DIRECTORY}systemd/system/"
curl ${PROXY} -o "${TMP_DIRECTORY}systemd/system/v2ray.service" https://raw.githubusercontent.workers.dev/v2fly/fhs-install-v2ray/master/systemd/system/v2ray.service -s
if [[ "$?" -ne '0' ]]; then
echo 'error: Failed to start service file download! Please check your network or try again.'
exit 1
fi
curl ${PROXY} -o "${TMP_DIRECTORY}systemd/system/v2ray@.service" https://raw.githubusercontent.workers.dev/v2fly/fhs-install-v2ray/master/systemd/system/v2ray@.service -s
if [[ "$?" -ne '0' ]]; then
echo 'error: Failed to start service file download! Please check your network or try again.'