mirror of
https://github.com/XTLS/Xray-install.git
synced 2024-11-23 07:31:27 +00:00
Update install-release.sh (#73)
* Update install-release.sh * Update install-release.sh
This commit is contained in:
parent
34df513a03
commit
652637b1eb
|
@ -300,8 +300,8 @@ judgment_parameters() {
|
||||||
N_UP_SERVICE='1'
|
N_UP_SERVICE='1'
|
||||||
;;
|
;;
|
||||||
'--logrotate')
|
'--logrotate')
|
||||||
if grep -qE '\b([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\b' <<< "$2";then
|
if ! grep -qE '\b([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\b' <<< "$2";then
|
||||||
echo "error: Wrong format of time, it should be in the format of 12:34:56, under 12:00:00 should be start with 0, e.g. 01:23:45."
|
echo "error: Wrong format of time, it should be in the format of 12:34:56, under 10:00:00 should be start with 0, e.g. 01:23:45."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
LOGROTATE='1'
|
LOGROTATE='1'
|
||||||
|
@ -800,7 +800,7 @@ show_help() {
|
||||||
echo " --without-geodata Don't install/update geoip.dat and geosite.dat"
|
echo " --without-geodata Don't install/update geoip.dat and geosite.dat"
|
||||||
echo " --without-logfiles Don't install /var/log/xray"
|
echo " --without-logfiles Don't install /var/log/xray"
|
||||||
echo " --logrotate [time] Install with logrotate."
|
echo " --logrotate [time] Install with logrotate."
|
||||||
echo " [time] need be in the format of 12:34:56, under 12:00:00 should be start with 0, e.g. 01:23:45."
|
echo " [time] need be in the format of 12:34:56, under 10:00:00 should be start with 0, e.g. 01:23:45."
|
||||||
echo ' install-geodata:'
|
echo ' install-geodata:'
|
||||||
echo ' -p, --proxy Download through a proxy server'
|
echo ' -p, --proxy Download through a proxy server'
|
||||||
echo ' remove:'
|
echo ' remove:'
|
||||||
|
|
Loading…
Reference in a new issue