You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: install_en.sh
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -97,8 +97,22 @@ config_after_install() {
97
97
echo -e "${yellow}panel port set down!${plain}"
98
98
else
99
99
echo -e "${red}cancel...${plain}"
100
-
echo -e "${red}if this is your first time to install,the default panel port is ${green}54321${plain},username and password both are${green}admin${plain},please change them in time"
101
-
echo -e "${red}if this is your upgrade,keep the old settings,if you forgot you login info,you can type x-ui and then type 7 to check${plain}"
100
+
if [[ !-f"/etc/x-ui/x-ui.db" ]];then
101
+
local usernameTemp=$(head -c 6 /dev/urandom | base64)
102
+
local passwordTemp=$(head -c 6 /dev/urandom | base64)
0 commit comments