Skip to content

Commit

Permalink
Update Yosemite_CIS.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
krispayne authored Jul 29, 2016
1 parent a9bc4f4 commit d9abb8f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Yosemite_CIS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1019,10 +1019,6 @@ artifacts() {
# left as a function in case you don't want to reboot after running the rest of the script
cleanAndReboot() {

ScriptLogging " "
ScriptLogging " CIS Level ${CISLEVEL} Settings Finished! Time to restart..."
ScriptLogging " ************************************************** "
ScriptLogging " $(date +%Y-%m-%d\ %H:%M:%S)"
ScriptLogging " Rebooting for CIS Settings "
/sbin/shutdown -r now
}
Expand Down Expand Up @@ -1052,6 +1048,11 @@ mainScript() {
systemAccess
userEnvironment
cleanAndReboot

ScriptLogging " "
ScriptLogging " CIS Level ${CISLEVEL} Settings Finished! Time to restart..."
ScriptLogging " ************************************************** "
ScriptLogging " $(date +%Y-%m-%d\ %H:%M:%S)"
}

# Run mainScript
Expand Down

1 comment on commit d9abb8f

@krispayne
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved "finished" message to mainScript from cleanAndReboot function. Better logs.

Please sign in to comment.