<commit_before>#!/bin/bash

#define user account, group and current litecoin version 
LITECOIND_USER="litecoin" #the user litecoind will run under
LITECOIND_GROUP="litecoin" #the group litecoind is a member of
LITECOIN_VER="litecoin-0.8.7.5-linux" #current litecoin version

#define directory locations
HOME="/root" #home directory of the root user, we store some script and tempfiles here
LITECOIND_BIN_DIR="/home/litecoind/bin" #the directory that stores the binary file of litecoind
LITECOIND_DATA_DIR="/home/litecoind/.litecoin" #the directory that holds the litecoind data
LITECOIND_HOME_DIR="/home/litecoind" #home directory of litecoin user account
UPSTART_CONF_DIR="/etc/init" #the directory that holds the litecoind upstart configuration file
WEBSITE_DIR="/usr/share/nginx/html" #the directory that stores the http status page files

#define configuration file locations
LITECOIND_CONF_FILE="/home/litecoind/.litecoin/litecoin.conf" #the litecoind configuration file
UPSTART_CONF_FILE="litecoind.conf" #name of the litecoind upstart script config file. This is not the litecoin.conf file!

#define download locations
UPSTART_DL_URL="https://raw.githubusercontent.com/LitecoinNode/DeploymentScripts/master/litecoind.conf" #the download location of the upstart.conf file for litecoind
WEBSITE_DL_URL="https://raw.githubusercontent.com/LitecoinNode/DeploymentScripts/master/test-install-node.sh" #the download location of the status page website files
NODESTATUS_DL_URL="https://raw.githubusercontent.com/LitecoinNode/DeploymentScripts/master/nodestatus.py" #the download location of the nodestatus.py file
LITECOIN_DL_URL="https://download.litecoin.org/litecoin-0.8.7.5/linux/litecoin-0.8.7.5-linux.tar.xz" #litecoin download link

#generate random user and password for rpc
RPC_USER=`< /dev/urandom tr -dc A-Za-z0-9 | head -c30` #this generates a random rpc username
RPC_PASSWORD=`< /dev/urandom tr -dc A-Za-z0-9 | head -c30` #this generates a random rpc password

#change working directory
cd $HOME

mkdir -v $HOME/scripts 

#do we want to install system updates
read -r -p "Do you want to install operating system updates? (Y/N) " -n 1 ANSWER
echo
if [[ $ANSWER =~ ^([yY])$ ]]
then
    wget $WEBSITE_DL_URL/test-install-updates.sh -P $HOME
	source $HOME/test-install-updates.sh
	rm -f -v $HOME/test-install-updates.sh
fi

#do we want to install Litecoin
read -r -p "Do you want to install Litecoin? (Y/N) " -n 1 ANSWER
echo
if [[ $ANSWER =~ ^([yY])$ ]]
then
    wget $WEBSITE_DL_URL/test-install-litecoin.sh -P $HOME
	source $HOME/test-install-litecoin.sh
	rm -f -v $HOME/test-install-litecoin.sh
fi<commit_msg>Fix broken link<commit_after>#!/bin/bash

#define user account, group and current litecoin version 
LITECOIND_USER="litecoin" #the user litecoind will run under
LITECOIND_GROUP="litecoin" #the group litecoind is a member of
LITECOIN_VER="litecoin-0.8.7.5-linux" #current litecoin version

#define directory locations
HOME="/root" #home directory of the root user, we store some script and tempfiles here
LITECOIND_BIN_DIR="/home/litecoind/bin" #the directory that stores the binary file of litecoind
LITECOIND_DATA_DIR="/home/litecoind/.litecoin" #the directory that holds the litecoind data
LITECOIND_HOME_DIR="/home/litecoind" #home directory of litecoin user account
UPSTART_CONF_DIR="/etc/init" #the directory that holds the litecoind upstart configuration file
WEBSITE_DIR="/usr/share/nginx/html" #the directory that stores the http status page files

#define configuration file locations
LITECOIND_CONF_FILE="/home/litecoind/.litecoin/litecoin.conf" #the litecoind configuration file
UPSTART_CONF_FILE="litecoind.conf" #name of the litecoind upstart script config file. This is not the litecoin.conf file!

#define download locations
UPSTART_DL_URL="https://raw.githubusercontent.com/LitecoinNode/DeploymentScripts/master/litecoind.conf" #the download location of the upstart.conf file for litecoind
WEBSITE_DL_URL="https://raw.githubusercontent.com/LitecoinNode/DeploymentScripts/master" #the download location of the status page website files
NODESTATUS_DL_URL="https://raw.githubusercontent.com/LitecoinNode/DeploymentScripts/master/nodestatus.py" #the download location of the nodestatus.py file
LITECOIN_DL_URL="https://download.litecoin.org/litecoin-0.8.7.5/linux/litecoin-0.8.7.5-linux.tar.xz" #litecoin download link

#generate random user and password for rpc
RPC_USER=`< /dev/urandom tr -dc A-Za-z0-9 | head -c30` #this generates a random rpc username
RPC_PASSWORD=`< /dev/urandom tr -dc A-Za-z0-9 | head -c30` #this generates a random rpc password

#change working directory
cd $HOME

mkdir -v $HOME/scripts 

#do we want to install system updates
read -r -p "Do you want to install operating system updates? (Y/N) " -n 1 ANSWER
echo
if [[ $ANSWER =~ ^([yY])$ ]]
then
    wget $WEBSITE_DL_URL/test-install-updates.sh -P $HOME
	source $HOME/test-install-updates.sh
	rm -f -v $HOME/test-install-updates.sh
fi

#do we want to install Litecoin
read -r -p "Do you want to install Litecoin? (Y/N) " -n 1 ANSWER
echo
if [[ $ANSWER =~ ^([yY])$ ]]
then
    wget $WEBSITE_DL_URL/test-install-litecoin.sh -P $HOME
	source $HOME/test-install-litecoin.sh
	rm -f -v $HOME/test-install-litecoin.sh
fi
{'fraction_non_alphanumeric': 0.10377177867126172, 'fraction_numerical': 0.00842427723530538, 'mean_word_length': 5.081490104772992, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6499025', 'n_tokens_mistral': 1833, 'n_tokens_neox': 1790, 'n_words': 527}