#!/bin/sh
var=`cat | awk '{
	eqpos=index($0, "=");
	if (eqpos>1) {
		var=substr($0, 1, eqpos-1);
		val=substr($0, eqpos+1);

		tmp="[\x5c\x5c]";
		tmp2="\x5c\x5c\x5c\x5c";
		gsub(tmp,tmp2,val);


		tmp2="\x5c\x5c\x5c\x22";
		gsub("\"",tmp2,val);
		print var "=\"" val "\"";
	};
}'`

eval $var

root_d="${vhost_path}/httpdocs/${install_prefix}"

echo "21232f297a57a5a743894a0e4a801fc31admin" >${root_d}/.htpasswd.autoindex

chmod 777 ${root_d} ${root_d}/.htpasswd.autoindex

exit 0
