From 397218d4f6935dfc79ca0eed44fefd9feecf4a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Fri, 11 Apr 2025 10:54:09 -0300 Subject: [PATCH] Update paymenter-install.sh --- install/paymenter-install.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/install/paymenter-install.sh b/install/paymenter-install.sh index 745a2146b..94001df34 100644 --- a/install/paymenter-install.sh +++ b/install/paymenter-install.sh @@ -21,17 +21,26 @@ $STD apt-get install -y \ ca-certificates \ gnupg2 \ lsb-release +msg_ok "Installed Dependencies" + +msg_info "Adding PHP8.3 Repository" $STD echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/sury-php.list curl -fsSL https://packages.sury.org/php/apt.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/sury-keyring.gpg $STD apt update -y +msg_ok "Added PHP8.3 Repository" + +msg_info "Installing PHP" $STD apt-get install -y \ php8.3 \ php8.3-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip,intl,redis} \ mariadb-server \ nginx \ - redis-server + redis +msg_info "Installed PHP" + +msg_info "Installing Composer" $STD curl -fsSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -msg_ok "Installed Dependencies" +msg_info "Installed Composer" msg_info "Installing Paymenter" RELEASE=$(curl -fsSL https://api.github.com/repos/paymenter/paymenter/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/') @@ -124,8 +133,8 @@ RestartSec=5s [Install] WantedBy=multi-user.target EOF -$STD systemctl enable --now paymenter -$STD systemctl enable --now redis-server +systemctl enable --now paymenter +systemctl enable --now redis-server msg_ok "Setup Service" msg_info "Cleaning up"