<commit_before>#!/bin/bash
# <udf name="machinename" label="Hostname" example="somedomain.com"/>
# <udf name="mysqlrootpw" label="MySQL root password" example="password"/>
# <udf name="sshport" label="Port for SSH" example="22" default="22"/>

source <ssinclude StackScriptID="8646">
source <ssinclude StackScriptID="8649">


function install_cockpit {
	apache_virtualhost $1
	
	groupadd dev
	useradd -m -s /bin/bash -G dev deploy
	# echo "sup<PASSWORD>" | passwd --stdin deploy

	setup_github
	
	rm -Rf /home/${1}
	chown deploy:dev /home
	sudo -u deploy git clone <EMAIL>:crunchbutton/crunchbutton.git /home/${1}
	mkdir /home/${1}/logs /home/${1}/cache
	mkdir /home/${1}/cache/min /home/${1}/cache/thumb /home/${1}/data
	chmod -R 0777 /home/${1}/cache

}<commit_msg>reorder<commit_after>#!/bin/bash
# <udf name="machinename" label="Hostname" example="somedomain.com"/>
# <udf name="mysqlrootpw" label="MySQL root password" example="password"/>
# <udf name="sshport" label="Port for SSH" example="22" default="22"/>

source <ssinclude StackScriptID="8646">
source <ssinclude StackScriptID="8649">


function install_cockpit {
	apache_virtualhost $1
	
	groupadd dev
	useradd -m -s /bin/bash -G dev deploy
	# echo "sup<PASSWORD>" | passwd --stdin deploy

	setup_github
	
	chown deploy:dev /home
	rm -Rf /home/${1}

	sudo -u deploy git clone <EMAIL>:crunchbutton/crunchbutton.git /home/${1}
	mkdir /home/${1}/logs /home/${1}/cache
	mkdir /home/${1}/cache/min /home/${1}/cache/thumb /home/${1}/data
	chmod -R 0777 /home/${1}/cache

}
{'fraction_non_alphanumeric': 0.17527795945062133, 'fraction_numerical': 0.032701111837802485, 'mean_word_length': 4.583941605839416, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '2606207', 'n_tokens_mistral': 593, 'n_tokens_neox': 558, 'n_words': 134}