When I attempt to run a system-level script, I get an error "Invalid account" and the error log is:
Schedule "Restart FMSE" run now by "Administrator"
Schedule "Restart FMSE" scheduled for 3?23/2017 08:30 AM.
Schedule "Restart FMSE" aborted; invalid account name or password.
Schedule "Restart FMSE" has started system script "restartFMSE.sh" with process ID 2677.
I am attempting to run this script on FMS 15 running on MacOS Sierra 10.12.3. I'm completely unfamiliar with MacOS.
I have created a bash script (restartFMSE.sh) in /Library/Filemaker Server/Data/Scripts and run chmod u+x restartFMSE.sh so that the file attributes are -rwxr--r--+ 1
I have changed the permissions on restartFMSE.sh so that the fmserver user has Read & Write.
The contents of restartFMSE.sh are:
fmsadmin restart fmse -y
What do I need to do in order to enable this script to run?