Fixes for the installer

This commit is contained in:
Pinga 2024-01-02 15:52:36 +02:00
parent d84eec88e3
commit 174ae4d723

View file

@ -49,7 +49,7 @@ if [[ ("$OS" == "Ubuntu" && "$VER" == "22.04") || ("$OS" == "Debian GNU/Linux" &
gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg caddy-stable.gpg.key
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
echo "Updating package lists and upgrading packages..."
apt update && apt upgrade
apt update -y && apt upgrade -y
echo "Installing additional required packages..."
apt install -y bzip2 caddy composer gettext git gnupg2 net-tools php8.2 php8.2-cli php8.2-common php8.2-curl php8.2-ds php8.2-fpm php8.2-gd php8.2-gmp php8.2-gnupg php8.2-igbinary php8.2-imap php8.2-intl php8.2-mbstring php8.2-opcache php8.2-readline php8.2-redis php8.2-soap php8.2-swoole php8.2-uuid php8.2-xml pv redis unzip wget whois
@ -138,6 +138,8 @@ if [[ ("$OS" == "Ubuntu" && "$VER" == "22.04") || ("$OS" == "Debian GNU/Linux" &
chown -R www-data:www-data /var/log/namingo
echo "Setting up firewall rules..."
ufw allow 22/tcp
ufw allow 22/udp
ufw allow 43/tcp
ufw allow 80/tcp
ufw allow 80/udp
@ -245,7 +247,7 @@ if [[ ("$OS" == "Ubuntu" && "$VER" == "22.04") || ("$OS" == "Debian GNU/Linux" &
systemctl restart caddy
echo "Control Panel Setup..."
cp -r /opt/registry/cp /var/www/
cp -r /opt/registry/cp /var/www
mv /var/www/cp/env-sample /var/www/cp/.env
# Update .env file with the actual values