Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

add docker file En version#184

Open
samsesh wants to merge 2 commits into
FranzKafkaYu:mainfrom
samsesh:main
Open

add docker file En version#184
samsesh wants to merge 2 commits into
FranzKafkaYu:mainfrom
samsesh:main

Conversation

@samsesh

@samsesh samsesh commented Nov 24, 2022

Copy link
Copy Markdown

Hello, I wanted to write the English version of the Docker file with your code and the code of @chasing66 who wrote the Docker file.
I did this, but when it comes up, the xray doesn't work properly. I wanted to see what you think

@samsesh

samsesh commented Nov 24, 2022

Copy link
Copy Markdown
Author

I forgot to add this line at the beginning of the install.sh file
docker build -t xui:latest .

@enwaiax

enwaiax commented Dec 1, 2022

Copy link
Copy Markdown

@samsesh check this one https://github.com/Chasing66/x-ui

@kamalsasi

Copy link
Copy Markdown

Hello dear, can you put the expiration date for each user that is added in the next edit

@hoseinnikkhah hoseinnikkhah left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were some spelling issues and wrong grammar, I tried to fix them all here.
Nice job by the way.

Comment thread Docker_EN/en.sh
if [ $# == 0 ]; then
last_version=$(curl -Ls "https://api.github.com/repos/FranzKafkaYu/x-ui/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
if [[ ! -n "$last_version" ]]; then
echo -e "${red}refresh x-ui version failed,it may due to Github API restriction,please try it later${plain}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correcting grammar:

echo -e "${red}refresh x-ui version failed, it might be due to GitHub API restriction, please again later${plain}"

Comment thread Docker_EN/en.sh
echo -e "${red}refresh x-ui version failed,it may due to Github API restriction,please try it later${plain}"
exit 1
fi
echo -e "get x-ui latest version succeed:${last_version},begin to install..."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change from:

echo -e "get x-ui latest version succeed:${last_version},begin to install..."

to:

echo -e "getting x-ui latest version succeed:${last_version},begin to install..."

Comment thread Docker_EN/en.sh
echo -e "get x-ui latest version succeed:${last_version},begin to install..."
wget -N --no-check-certificate -O /root/x-ui-linux-${arch}-english.tar.gz https://github.com/FranzKafkaYu/x-ui/releases/download/${last_version}/x-ui-linux-${arch}-english.tar.gz
if [[ $? -ne 0 ]]; then
echo -e "${red}dowanload x-ui failed,please be sure that your server can access Github{plain}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct spelling and grammar.
Change from:

echo -e "${red}dowanload x-ui failed,please be sure that your server can access Github{plain}"

to:

echo -e "${red}downloading x-ui failed, please make sure that your server can access GitHub{plain}"

Comment thread Docker_EN/en.sh
echo -e "begin to install x-ui v$1 ..."
wget -N --no-check-certificate -O /root/x-ui-linux-${arch}-english.tar.gz ${url}
if [[ $? -ne 0 ]]; then
echo -e "${red}dowanload x-ui v$1 failed,please check the verison exists${plain}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling issues

  • change dowanload to download.
  • change verison to version.
  • Correcting grammar.

from:

echo -e "${red}dowanload x-ui v$1 failed,please check the verison exists${plain}"

to:

echo -e "${red}downloading x-ui v$1 failed,please check exciting version${plain}"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants