From 142f04aeebfc1e878f7573527c177b0fa090813c Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 7 Nov 2018 09:01:22 -0600 Subject: [PATCH] MCOL-520 - change to only do sudo change to rc.local for non-root amazon --- oamapps/postConfigure/postConfigure.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/oamapps/postConfigure/postConfigure.cpp b/oamapps/postConfigure/postConfigure.cpp index 8c4cd73c6..15a39973f 100644 --- a/oamapps/postConfigure/postConfigure.cpp +++ b/oamapps/postConfigure/postConfigure.cpp @@ -1471,12 +1471,12 @@ int main(int argc, char* argv[]) cout << "Check Amazon Install Documenation for additional information, exiting..." << endl; exit (1); } - } - // setup to start on reboot, for non-root amazon installs - if ( !rootUser ) - { - system("sudo sed -i -e 's/#runuser/runuser/g' /etc/rc.d/rc.local >/dev/null 2>&1"); + // setup to start on reboot, for non-root amazon installs + if ( !rootUser ) + { + system("sudo sed -i -e 's/#runuser/runuser/g' /etc/rc.d/rc.local >/dev/null 2>&1"); + } } if ( !writeConfig(sysConfig) )