更新 'scripts/install.sh'
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
## License: GPL
|
||||
## It can reinstall Debian, Ubuntu, CentOS system with network.
|
||||
## Default root password: MoeClub.org
|
||||
## Default root password: sex@2020
|
||||
## Blog: https://moeclub.org
|
||||
## Written By MoeClub.org
|
||||
|
||||
@ -135,7 +135,7 @@ while [[ $# -ge 1 ]]; do
|
||||
;;
|
||||
*)
|
||||
if [[ "$1" != 'error' ]]; then echo -ne "\nInvaild option: '$1'\n\n"; fi
|
||||
echo -ne " Usage:\n\tbash $(basename $0)\t-d/--debian [\033[33m\033[04mdists-name\033[0m]\n\t\t\t\t-u/--ubuntu [\033[04mdists-name\033[0m]\n\t\t\t\t-c/--centos [\033[33m\033[04mdists-verison\033[0m]\n\t\t\t\t-v/--ver [32/\033[33m\033[04mi386\033[0m|64/amd64]\n\t\t\t\t--ip-addr/--ip-gate/--ip-mask\n\t\t\t\t-apt/-yum/--mirror\n\t\t\t\t-dd/--image\n\t\t\t\t-a/--auto\n\t\t\t\t-m/--manual\n"
|
||||
echo -ne " Usage:\n\tbash $(basename $0)\t-d/--debian [\033[33m\033[04mdists-name\033[0m]\n\t\t\t\t-u/--ubuntu [\033[04mdists-name\033[0m]\n\t\t\t\t-c/--centos [\033[33m\033[04mdists-verison\033[0m]\n\t\t\t\t-v/--ver [32/\033[33m\033[04mi386\033[0m|64/amd64]\n\t\t\t\t-p/--password\t\t\t\t--ip-addr/--ip-gate/--ip-mask\n\t\t\t\t-apt/-yum/--mirror\n\t\t\t\t-dd/--image\n\t\t\t\t-a/--auto\n\t\t\t\t-m/--manual\n"
|
||||
exit 1;
|
||||
;;
|
||||
esac
|
||||
@ -345,7 +345,7 @@ fi
|
||||
|
||||
[ -n "$ipAddr" ] && [ -n "$ipMask" ] && [ -n "$ipGate" ] && setNet='1';
|
||||
[[ -n "$tmpWORD" ]] && myPASSWORD="$(openssl passwd -1 "$tmpWORD")";
|
||||
[[ -z "$myPASSWORD" ]] && myPASSWORD='$1$4BJZaD0A$y1QykUnJ6mXprENfwpseH0';
|
||||
[[ -z "$myPASSWORD" ]] && myPASSWORD='$1$ABuh.zf2$cqd/prSINfpAkwTQnOjP30';
|
||||
|
||||
if [[ -n "$interface" ]]; then
|
||||
IFETH="$interface"
|
Reference in New Issue
Block a user