Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks authored Dec 7, 2024
1 parent bbbf66f commit 48ddd87
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ install_packages() {
echo
echo "Installing packages..."
echo
apt-get update
apt-get install -y curl nginx certbot python3-certbot-nginx
sudo apt-get update
sudo apt-get install -y curl nginx certbot python3-certbot-nginx
echo
echo "Packages have been installed."
}

download_docker_compose() {
echo
echo "Downloading docker-compose.yml..."
curl -sSL https://raw.githubusercontent.com/Loudbooks/PasteBook/refs/heads/master/docker-compose.yml -o docker-compose.yml
sudo curl -sSL https://raw.githubusercontent.com/Loudbooks/PasteBook/refs/heads/master/docker-compose.yml -o docker-compose.yml
echo "docker-compose.yml has been created."
}

Expand All @@ -39,12 +39,12 @@ download_and_configure_nginx() {
echo "Downloading default Nginx configuration..."
echo

curl -sSL https://raw.githubusercontent.com/Loudbooks/PasteBook/refs/heads/master/pastebook.conf -o /etc/nginx/sites-available/pastebook.conf
sudo curl -sSL https://raw.githubusercontent.com/Loudbooks/PasteBook/refs/heads/master/pastebook.conf -o /etc/nginx/sites-available/pastebook.conf

read -p "Enter your domain name (e.g., pastebook.dev): " DOMAIN
sed -i "s/<DOMAIN>/${DOMAIN}/g" /etc/nginx/sites-available/pastebook.conf
sudo sed -i "s/<DOMAIN>/${DOMAIN}/g" /etc/nginx/sites-available/pastebook.conf

ln -s /etc/nginx/sites-available/pastebook.conf /etc/nginx/sites-enabled/
sudo ln -s /etc/nginx/sites-available/pastebook.conf /etc/nginx/sites-enabled/
echo
echo "Nginx configuration completed."
echo
Expand Down Expand Up @@ -73,4 +73,4 @@ install_packages
download_docker_compose
create_env_file
download_and_configure_nginx
ready
ready

0 comments on commit 48ddd87

Please sign in to comment.