<commit_before>#!/bin/bash

######################################################
#           Snipe-It Install Script                  #
#          Script created by <NAME>             #
#            <EMAIL>                   #
# This script is just to help streamline the         #
# install process for Debian and CentOS              #
# based distributions. I assume you will be          #
# installing as a subdomain on a fresh OS install.   #
# Right now I'm not going to worry about SMTP setup  #
#                                                    #
# Feel free to modify, but please give               #
# credit where it's due. Thanks!                     #
######################################################

# ensure running as root
if [ "$(id -u)" != "0" ]; then
  exec sudo "$0" "$@"
fi

#First things first, let's set some variables and find our distro.
clear
si="Snipe-IT"
hostname="$(hostname)"
fqdn="$(hostname --fqdn)"
hosts=/etc/hosts
file=master.zip
webdir=/var/www/html
name="snipeit"
tmp=/tmp/$name
ans=default
mkdir $tmp

#  Lets find what distro we are using and what version
distro="$(cat /proc/version)"
if grep -q ubuntu <<<$distro; then
	for f in $(find /etc -type f -maxdepth 1 \( ! -wholename /etc/os-release ! -wholename /etc/lsb-release -wholename /etc/\*release -o -wholename /etc/\*version \) 2> /dev/null);
	do
		distro="${f:5:${#f}-13}"
	done;
	if [ "$distro" = "centos" ] || [ "$distro" = "redhat" ]; then<commit_msg>centos > ubuntu :)<commit_after>#!/bin/bash

######################################################
#           Snipe-It Install Script                  #
#          Script created by <NAME>             #
#            <EMAIL>                   #
# This script is just to help streamline the         #
# install process for Debian and CentOS              #
# based distributions. I assume you will be          #
# installing as a subdomain on a fresh OS install.   #
# Right now I'm not going to worry about SMTP setup  #
#                                                    #
# Feel free to modify, but please give               #
# credit where it's due. Thanks!                     #
######################################################

# ensure running as root
if [ "$(id -u)" != "0" ]; then
  exec sudo "$0" "$@"
fi

#First things first, let's set some variables and find our distro.
clear
si="Snipe-IT"
hostname="$(hostname)"
fqdn="$(hostname --fqdn)"
hosts=/etc/hosts
file=master.zip
webdir=/var/www/html
name="snipeit"
tmp=/tmp/$name
ans=default
mkdir $tmp

#  Lets find what distro we are using and what version
distro="$(cat /proc/version)"
if grep -q centos <<<$distro; then
	for f in $(find /etc -type f -maxdepth 1 \( ! -wholename /etc/os-release ! -wholename /etc/lsb-release -wholename /etc/\*release -o -wholename /etc/\*version \) 2> /dev/null);
	do
		distro="${f:5:${#f}-13}"
	done;
	if [ "$distro" = "centos" ] || [ "$distro" = "redhat" ]; then
{'fraction_non_alphanumeric': 0.20136752136752137, 'fraction_numerical': 0.004786324786324786, 'mean_word_length': 2.3099547511312215, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5025754', 'n_tokens_mistral': 922, 'n_tokens_neox': 855, 'n_words': 291}