Commit d71e1b28 authored by Jondy Zhao's avatar Jondy Zhao

Missing parameter in read command

parent 80a6abce
...@@ -73,5 +73,5 @@ sed -i -e "s%^cert_file.*$%cert_file = $client_certificate_file%" \ ...@@ -73,5 +73,5 @@ sed -i -e "s%^cert_file.*$%cert_file = $client_certificate_file%" \
$client_configure_file $client_configure_file
echo SlapOS Client configure successfully. echo SlapOS Client configure successfully.
read -n -t 10 -p "Press any key to exit..." read -n 1 -t 10 -p "Press any key to exit..."
exit 0 exit 0
...@@ -189,7 +189,7 @@ sed -i -e "s%^\\s*interface_name.*$%interface_name = $interface_guid%" \ ...@@ -189,7 +189,7 @@ sed -i -e "s%^\\s*interface_name.*$%interface_name = $interface_guid%" \
$node_config_file $node_config_file
# Config slapproxy # Config slapproxy
if [[ $(grep -q "^\[slapproxy\]" $node_config_file) ]] ; then if ! $(grep -q "^\[slapproxy\]" $node_config_file) ; then
echo " echo "
[slapproxy] [slapproxy]
host = 127.0.0.1 host = 127.0.0.1
...@@ -272,5 +272,5 @@ regtool -q set "$run_key\\$slapos_run_entry" \ ...@@ -272,5 +272,5 @@ regtool -q set "$run_key\\$slapos_run_entry" \
show_error_exit "Add startup item failed." show_error_exit "Add startup item failed."
echo SlapOS Node configure successfully. echo SlapOS Node configure successfully.
read -n -t 10 -p "Press any key to exit..." read -n 1 -t 10 -p "Press any key to exit..."
exit 0 exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment