fix config version

Failed to start: main/commands: failed to load config: [/usr/local/etc/v2ray/config.json] > infra/conf/serial: failed to read config file at line 1 char 144 > json: cannot unmarshal object into Go struct field LogConfig.log.access of type string
pull/309/head
jk2K 2025-09-13 16:54:17 +08:00 committed by GitHub
parent cb39ee8824
commit ce12547168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -413,12 +413,12 @@ ExecStart=${START_COMMAND} -confdir $JSONS_PATH" |
# Or all changes you made will be lost! # Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
[Service]
ExecStart=
ExecStart=${START_COMMAND} -config ${JSON_PATH}/config.json" > '/etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf'
ExecStart=${START_COMMAND} -config ${JSON_PATH}/config.json -format jsonv5" > '/etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf'
echo "# In case you have a good reason to do so, duplicate this file in the same directory and make your customizes there.
# Or all changes you made will be lost! # Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
[Service]
ExecStart=
ExecStart=${START_COMMAND} -config ${JSON_PATH}/%i.json" > '/etc/systemd/system/v2ray@.service.d/10-donot_touch_single_conf.conf'
ExecStart=${START_COMMAND} -config ${JSON_PATH}/%i.json -format jsonv5" > '/etc/systemd/system/v2ray@.service.d/10-donot_touch_single_conf.conf'
fi
echo "info: Systemd service files have been installed successfully!"
echo "${red}warning: ${green}The following are the actual parameters for the v2ray service startup."