From a82b431ae674c6b34663b0c36c1b1138f5301381 Mon Sep 17 00:00:00 2001 From: David Hill Date: Fri, 26 Oct 2018 14:42:44 -0500 Subject: [PATCH] MCOL-520 - amazon changes --- oam/install_scripts/module_installer.sh | 4 ++-- oamapps/postConfigure/postConfigure.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oam/install_scripts/module_installer.sh b/oam/install_scripts/module_installer.sh index 9627acff7..9e3a1a0e5 100755 --- a/oam/install_scripts/module_installer.sh +++ b/oam/install_scripts/module_installer.sh @@ -172,8 +172,8 @@ fi touch $RCFILE if [ $user != "root" ]; then - echo "uncomment runuser in rc.local" - sed -i -e 's/#MCS//g' /etc/rc.d/rc.local >/dev/null 2>&1 + echo "uncomment runuser in rc.local, amazon AMI" + sed -i -e 's/#runuser/runuser/g' /etc/rc.d/rc.local >/dev/null 2>&1 fi echo "!!!Module Installation Successfully Completed!!!" diff --git a/oamapps/postConfigure/postConfigure.cpp b/oamapps/postConfigure/postConfigure.cpp index 63ba2f9a2..30b91eb38 100644 --- a/oamapps/postConfigure/postConfigure.cpp +++ b/oamapps/postConfigure/postConfigure.cpp @@ -1477,7 +1477,7 @@ int main(int argc, char* argv[]) // setup to start on reboot, for non-root amazon installs if ( !rootUser ) { - system("sed -i -e 's/#MCS//g' /etc/rc.d/rc.local >/dev/null 2>&1"); + system("sed -i -e 's/#runuser/runuser/g' /etc/rc.d/rc.local >/dev/null 2>&1"); } if ( !writeConfig(sysConfig) )