<commit_before>#!/bin/bash

#Get Variables
export MACHINE_ID=$(curl -s http://169.254.169.254/metadata/v1/id)
export MAIN_HOST='##mainhost##'
export SMB_HOST='##smbhost##'
export SMB_PORT='##smbport##'
export SMB_USER='##smbuser##'
export SMB_PASS='<PASSWORD>##'
export WEB_PORT='##webport##'

#mount transcode ouput
mount -t cifs -o user=$SMB_USER,pass=$SMB_PASS,port=$SMB_PORT //$SMB_HOST/transcode /transcode

#mount plexbinaries
mount -t cifs -o user=$SMB_USER,pass=$SMB_PASS,port=$SMB_PORT //$SMB_HOST/plexmediaserver /usr/lib/plexmediaserver
chmod +x /usr/lib/plexmediaserver/Resources/plex_transcoder

#run machineRefresh Script
screen -S machineNotifier -A -m -d python /usr/bin/machineRefresh.py $MAIN_HOST:$WEB_PORT<commit_msg>added same user as plex main in the remote machine<commit_after>#!/bin/bash

#Get Variables
export MACHINE_ID=$(curl -s http://169.254.169.254/metadata/v1/id)
export MAIN_HOST='##mainhost##'
export SMB_HOST='##smbhost##'
export SMB_PORT='##smbport##'
export SMB_USER='##smbuser##'
export SMB_PASS='<PASSWORD>##'
export WEB_PORT='##webport##'

addgroup --gid 911 abc
adduser --disabled-password --gecos "" --uid 911 --gid 911 abc --home /var/lib/plexmediaserver --no-create-home


#mount transcode ouput
mount -t cifs -o user=$SMB_USER,pass=$SMB_PASS,port=$SMB_PORT //$SMB_HOST/transcode /transcode

#mount plexbinaries
mount -t cifs -o user=$SMB_USER,pass=$SMB_PASS,port=$SMB_PORT //$SMB_HOST/plexmediaserver /usr/lib/plexmediaserver
chmod +x /usr/lib/plexmediaserver/Resources/plex_transcoder

#run machineRefresh Script
screen -S machineNotifier -A -m -d python /usr/bin/machineRefresh.py $MAIN_HOST:$WEB_PORT
{'fraction_non_alphanumeric': 0.154126213592233, 'fraction_numerical': 0.021237864077669904, 'mean_word_length': 5.987288135593221, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4872747', 'n_tokens_mistral': 673, 'n_tokens_neox': 620, 'n_words': 129}