chilcote / outset

Automatically process packages, profiles, and scripts during boot, login, or on demand.
572 stars 58 forks source link

Scripts not running although logs show they ran successfully #90

Open conner-lotus opened 2 years ago

conner-lotus commented 2 years ago

I am new to Outset. The test scripts I have setup are not executing the results. Not sure what I am missing.

For this instance, there was only one line in the log.

Does this indicate success? the lo.txt file was not created automatically. However when I run this script through terminal the lo.txt file is successfully created.

What am I missing?

Thanks in advance.

kkordisch commented 2 years ago

I am seeing similar issues on 12.1.

arubdesu commented 2 years ago

Hey there, "Installed python3" is unfortunately not enough info in 2021, as there are several versions depending on the source. Do you see an entry for your script when you run this command:

defaults read ~/Library/Preferences/com.github.outset.once.plist

? I can tell you it does work in my environment using munki-python and scripts using either that python in the shebang or /bin/bash.

conner-lotus commented 2 years ago

I installed Python 3.10.1 from the Python website, https://www.python.org/downloads/ .

@arubdesu This is the output I got running the command you suggested: 2021-12-30 10:19:16.203 defaults[798:25814] Domain /Users//Library/Preferences/com.github.outset.once.plist does not exist

However, I updated the shebang in each script and added an exit statement, and it seems to have resolved the issue.

Thanks for the assistance!