From 3863bc39c227a483cd780d660bb5803ea126a66a Mon Sep 17 00:00:00 2001 From: Roxy Date: Fri, 7 Jul 2023 11:06:17 +0200 Subject: [PATCH] fixing gay shitz --- installer.sh | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/installer.sh b/installer.sh index e66dde0..ba2cd38 100644 --- a/installer.sh +++ b/installer.sh @@ -17,37 +17,46 @@ else exit 1 fi -# Install the 'webrick' gem +# install ruby dep dep webriccc if ! gem list webrick -i > /dev/null; then echo "Installing webrick..." gem install webrick fi -echo "Enabling Nginx service..." +echo "enablin dat nginx and starting dat mf" sudo systemctl enable nginx sudo systemctl start nginx # Make a directory in the current user's home folder called 'ruby-proxy' -if [ ! -d ~/ruby-proxy ]; then - echo "Creating directory 'ruby-proxy'..." +if [ -d ~/ruby-proxy ]; then + echo "gurl that directory already exists you wanna delete it?" + read -p "you wanna yeetus feetus deletus? y/n " answer + if [ "$answer" == "y" ]; then + echo "deleting your life jk jk deleting the directory" + rm -rf ~/ruby-proxy + else + echo "go bad bitch i guess" + exit + fi +else + echo "creating da directory ruby-proxy" mkdir ~/ruby-proxy fi -# Clone the contents of the specified git repository into that folder + +# clone program git into fodler ... maybe add option to skip this lol if [ ! -d ~/ruby-proxy/ruby-rewrite-proxy ]; then - echo "Cloning repository..." + echo "commiting piracy and downloading da hackz" git clone https://adastra7.net/git/crt/ruby-rewrite-proxy.git ~/ruby-proxy fi -# Ask the user to set server_name and proxy_set_header -read -p "Enter server_name (the URL from which you will access the Website): " server_name -read -p "Enter proxy_set_header (the host header for the website you wanna modify/proxy): " proxy_set_header +# goofy ah ask user to set nginx proxy stuff +read -p "Enter the sexy server_name (the URL from which you will access the Website): " server_name -# Create the Nginx config file if [ ! -f /etc/nginx/sites-available/ruby-proxy ]; then - echo "Creating Nginx configuration file..." - sudo cat << EOF > /etc/nginx/sites-available/ruby-proxy + echo "breaking nginx cutely" + sudo tee /etc/nginx/sites-available/ruby-proxy > /dev/null <