My script is below and no matter what I try my attempt to run the script with a wait /bin/sh -c /tmp/Armor.sh is causing an exit code of 1. The file I confirmed is created, ive tried to lower its ownership still same issue and ive also run it manually and didn’t have any errors. What could possibly be wrong? if my credentials to login to the databases were wrong id expect a failure when run manually. Any help would be greatly appreciated.
if {(name of operating system as lowercase contains "linux")}
delete __createfile
delete /tmp/Armor.sh
createfile until _end_
#!/bin/sh
db1User=$(Calling a decrypt shell to pull the username from a property file on the computer and store it in a variable )
db2User=$( Calling a decrypt shell to pull the username from a property file on the computer and store it in a variable )
db1Pass=$( Calling a decrypt shell to pull the Password from a property file on the computer and store it in a variable )
db2Pass=$( Calling a decrypt shell to pull the Password from a property file on the computer and store it in a variable)
mysql -u $db1User -p${{db1Pass} database1 -e "Update sql being run on first database"
mysql -u $db2User -p${{db2Pass} database2 -e "Update sql being run on second database"
_end_
move __createfile /tmp/Armor.sh
wait chmod 755 /tmp/Armor.sh
wait /bin/sh -c /tmp/Armor.sh
parameter "__ExitCode" = "{exit code of action}"
if {parameter "__ExitCode" != "0"}
exit {parameter "__ExitCode"}
endif
delete /tmp/Armor.sh