Commit 1284ddd5 authored by Russ Fish's avatar Russ Fish

Fix quoting problem with passwords containing $ characters.

parent 6744cb66
......@@ -192,7 +192,7 @@ if (! $noredef) {
print "\nRedefining EmulabShutdown.\n";
# Have to remove a service before you can redefine it.
system("cygrunsrv -R EmulabShutdown");
system("cygrunsrv -I EmulabShutdown -u root -w \"$rootpwd\"" .
system("cygrunsrv -I EmulabShutdown -u root -w '$rootpwd'" .
" -p /cygdrive/c/cygwin/bin/bash" .
" --shutdown --type manual" .
" -a \"--norc --noprofile -c '/usr/local/etc/emulab/tbshutdown'\"");
......@@ -204,7 +204,7 @@ if (! $noredef) {
my $progrun = "cygrunsrv -S ProgAgent";
my $bootlog = "/var/log/bootsetup.log";
system("cygrunsrv -R EmulabStartup");
system("cygrunsrv -I EmulabStartup -u root -w \"$rootpwd\"" .
system("cygrunsrv -I EmulabStartup -u root -w '$rootpwd'" .
" --dep DHCP --dep elvinsvc.exe --dep W32Time" .
" -p /cygdrive/c/cygwin/bin/bash" .
" -a \"--norc --noprofile -c " .
......
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