Skip to content

Commit

Permalink
Merge pull request #4 from dlglin/master
Browse files Browse the repository at this point in the history
Fix useradd statement
  • Loading branch information
mgage authored Jun 6, 2018
2 parents 48a3107 + 96ba19d commit 747ab75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/ww_install.pl
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ sub get_ready {
Welcome to the WeBWorK. This installation script will ask you a few questions and then attempt to install
WeBWorK on your system. To complete the installation
(a) You must be connected to the internet, and
(b) You must have administrative privliges on this machine.
(b) You must have administrative privileges on this machine.
EOF
my $ready = $term->ask_yn(
print_me => $print_me,
Expand Down Expand Up @@ -426,13 +426,13 @@ sub check_root {
#my $term = Term::ReadLine->new('');
my $print_me = <<EOF;
IMPORTANT: I see that you are not running this script as root. Some elevated system
privliges are needed to install WeBWorK. If you run the script without sufficient privilges then
privileges are needed to install WeBWorK. If you run the script without sufficient privileges then
it will fail in ways that might be hard to track down.
EOF
my $prefix = $term->ask_yn(
print_me => $print_me,
prompt =>
'Are you sure you\'re running the script with the privilges you\'ll need to complete the installation?',
'Are you sure you\'re running the script with the privileges you\'ll need to complete the installation?',
default => 'n',
);
writelog($term->history_as_string()."\n");
Expand Down Expand Up @@ -657,7 +657,7 @@ sub create_wwadmin_user {
my $full_path = can_run("useradd");
my $cmd = [ $full_path, '-m', #create user home dir
'-s', $wwadmin_shell, #set default shell
'-c', "WeBWorK Administrator", #comment
'-c', '"WeBWorK Administrator"', #comment
'-p', $wwadmin_pw, #password
$wwadmin
];
Expand Down

0 comments on commit 747ab75

Please sign in to comment.