<commit_before>#!/bin/bash
# $1 - IP address of the node

# add stackato to sudoers so rename doesn't prompt for pw
chmod u+w /etc/sudoers
echo "stackato        ALL=(ALL)       NOPASSWD: ALL" >> /etc/sudoers
chmod u-w /etc/sudoers

# wait for stackato to boot
sudo su -l stackato -c "/home/stackato/bin/kato process ready --block 1000 all" >> /tmp/setup.log 2>&1

# rename host to xip.io name
sudo su -l stackato -c "/home/stackato/bin/kato node rename $1.xip.io" >> /tmp/setup.log 2>&1<commit_msg>move sudoers entry to sudoers.d/murano<commit_after>#!/bin/bash
# $1 - IP address of the node

# disable pw check so rename doesn't prompt for pw
#chmod u+w /etc/sudoers
echo "stackato        ALL=(ALL)       NOPASSWD: ALL" >> /etc/sudoers.d/murano
#chmod u-w /etc/sudoers

# re-enable pw check for safety
rm -f /etc/sudoers.d/murano

# wait for stackato to boot
sudo su -l stackato -c "/home/stackato/bin/kato process ready --block 1000 all" >> /tmp/setup.log 2>&1

# rename host to xip.io name
sudo su -l stackato -c "/home/stackato/bin/kato node rename $1.xip.io" >> /tmp/setup.log 2>&1
{'fraction_non_alphanumeric': 0.13351749539594843, 'fraction_numerical': 0.01841620626151013, 'mean_word_length': 3.148854961832061, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2951770', 'n_tokens_mistral': 445, 'n_tokens_neox': 403, 'n_words': 136}