<commit_before><?php

/* Stuff not related to upgrading database +
 * config files goes here. */
class AirtimeMiscUpgrade{
    public static function start($p_ini){
        self::adjustAirtimeStorPermissions($p_ini);
    }
        
    public static function adjustAirtimeStorPermissions($p_ini){
        /* Make the read permission of Monit cfg files more strict */
        $webUser = $p_ini["general"]["web_server_user"];
        exec("chown -R root:$webUser /srv/airtime");
        exec("chmod -R 2775 /srv/airtime");
    }
}<commit_msg>-more description in 2.1.0 upgrade script<commit_after><?php

/* Stuff not related to upgrading database +
 * config files goes here. */
class AirtimeMiscUpgrade{
    public static function start($p_ini){
        self::adjustAirtimeStorPermissions($p_ini);
    }
        
    public static function adjustAirtimeStorPermissions($p_ini){
        /* Make the read permission of Monit cfg files more strict */
        $webUser = $p_ini["general"]["web_server_user"];
        echo " * Updating /srv/airtime owner to root:$webUser".PHP_EOL;
        exec("chown -R root:$webUser /srv/airtime");
        echo " * Updating /srv/airtime permissions to 02755".PHP_EOL;
        exec("chmod -R 2775 /srv/airtime");
    }
}
{'fraction_non_alphanumeric': 0.1176, 'fraction_numerical': 0.0128, 'mean_word_length': 3.101639344262295, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5559275', 'n_tokens_mistral': 395, 'n_tokens_neox': 385, 'n_words': 101}