summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-11-11 15:58:20 +1100
committerDarren Tucker <dtucker@dtucker.net>2018-11-11 15:58:20 +1100
commitf2970868f86161a22b2c377057fa3891863a692a (patch)
tree5b1bbfd3ebdcd155fb8b017101fa57f963619c8c /contrib
parentbd2d54fc1eee84bf87158a1277a50e6c8a303339 (diff)
Improve warnings in cygwin service setup.
bz#2922, patch from vinschen at redhat.com.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/cygwin/ssh-host-config10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/cygwin/ssh-host-config b/contrib/cygwin/ssh-host-config
index e9f038db5..2903125f8 100644
--- a/contrib/cygwin/ssh-host-config
+++ b/contrib/cygwin/ssh-host-config
@@ -329,9 +329,9 @@ check_service_files_ownership() {
329 fi 329 fi
330 if [ -z "${run_service_as}" ] 330 if [ -z "${run_service_as}" ]
331 then 331 then
332 csih_warning "Couldn't determine name of user running sshd service from account database!" 332 csih_warning "Couldn't determine name of user running ${service_name} service from account database!"
333 csih_warning "As a result, this script cannot make sure that the files used" 333 csih_warning "As a result, this script cannot make sure that the files used"
334 csih_warning "by the sshd service belong to the user running the service." 334 csih_warning "by the ${service_name} service belong to the user running the service."
335 return 1 335 return 1
336 fi 336 fi
337 fi 337 fi
@@ -367,8 +367,8 @@ check_service_files_ownership() {
367 if [ $ret -ne 0 ] 367 if [ $ret -ne 0 ]
368 then 368 then
369 csih_warning "Couldn't change owner of important files to ${run_service_as}!" 369 csih_warning "Couldn't change owner of important files to ${run_service_as}!"
370 csih_warning "This may cause the sshd service to fail! Please make sure that" 370 csih_warning "This may cause the ${service_name} service to fail! Please make sure that"
371 csih_warning "you have suufficient permissions to change the ownership of files" 371 csih_warning "you have sufficient permissions to change the ownership of files"
372 csih_warning "and try to run the ssh-host-config script again." 372 csih_warning "and try to run the ssh-host-config script again."
373 fi 373 fi
374 return $ret 374 return $ret
@@ -446,7 +446,7 @@ install_service() {
446 echo 446 echo
447 csih_inform "The sshd service has been installed under the LocalSystem" 447 csih_inform "The sshd service has been installed under the LocalSystem"
448 csih_inform "account (also known as SYSTEM). To start the service now, call" 448 csih_inform "account (also known as SYSTEM). To start the service now, call"
449 csih_inform "\`net start sshd' or \`cygrunsrv -S sshd'. Otherwise, it" 449 csih_inform "\`net start ${service_name}' or \`cygrunsrv -S ${service_name}'. Otherwise, it"
450 csih_inform "will start automatically after the next reboot." 450 csih_inform "will start automatically after the next reboot."
451 fi 451 fi
452 else 452 else