<commit_before>#!/bin/sh

# DO NOT EDIT - This file is being maintained by Chef

exec > /var/log/planet-update.log 2>&1

echo "Updating planet file..."

runuser -u planet -- /usr/local/bin/planet-update-file

echo "Running jobs..."
<% node[:planet][:current][:jobs].each_value do |job| -%>

echo "Running '<%= job[:command] %>' as user '<%= job[:user] %>'..."

runuser -u "<%= job[:user] %>" -- "<%= job[:command] %>"
<% end -%>

echo "Done."<commit_msg>Use full path for runuser<commit_after>#!/bin/sh

# DO NOT EDIT - This file is being maintained by Chef

exec > /var/log/planet-update.log 2>&1

echo "Updating planet file..."

/sbin/runuser -u planet -- /usr/local/bin/planet-update-file

echo "Running jobs..."
<% node[:planet][:current][:jobs].each_value do |job| -%>

echo "Running '<%= job[:command] %>' as user '<%= job[:user] %>'..."

/sbin/runuser -u "<%= job[:user] %>" -- "<%= job[:command] %>"
<% end -%>

echo "Done."
{'fraction_non_alphanumeric': 0.23819742489270387, 'fraction_numerical': 0.004291845493562232, 'mean_word_length': 3.551219512195122, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2363375', 'n_tokens_mistral': 362, 'n_tokens_neox': 341, 'n_words': 85}