From 6cabec95b26b476d3a9678f6234807b0fead3242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Fri, 11 Apr 2025 01:24:42 -0300 Subject: [PATCH 1/5] Update paymenter.json --- frontend/public/json/paymenter.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/public/json/paymenter.json b/frontend/public/json/paymenter.json index 490d16f5f..68f24d1af 100644 --- a/frontend/public/json/paymenter.json +++ b/frontend/public/json/paymenter.json @@ -30,5 +30,8 @@ "username": "admin@paymenter.org", "password": "paymenter" }, - "notes": [] + "notes": { + "text": "After installation, navigate to the directory with `cd /opt/paymenter` and run `php artisan app:init`. An interactive setup will prompt you to enter your company name and application URL.", + "type": "info" + } } From e71d765810bdf7cae02ae5eba7b63eea5b440c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Fri, 11 Apr 2025 01:25:06 -0300 Subject: [PATCH 2/5] Update paymenter-install.sh --- install/paymenter-install.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/install/paymenter-install.sh b/install/paymenter-install.sh index 642e0681f..745a2146b 100644 --- a/install/paymenter-install.sh +++ b/install/paymenter-install.sh @@ -19,9 +19,14 @@ $STD apt-get install -y \ software-properties-common \ apt-transport-https \ ca-certificates \ - gnupg \ - php8.2 \ - php8.2-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} \ + gnupg2 \ + lsb-release +$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 +$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 @@ -63,13 +68,7 @@ $STD php artisan migrate --force --seed msg_ok "Set up database" msg_info "Creating Admin User" -$STD php artisan p:user:create < Date: Fri, 11 Apr 2025 10:00:52 -0300 Subject: [PATCH 3/5] Update paymenter.json Updated json notes --- frontend/public/json/paymenter.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/public/json/paymenter.json b/frontend/public/json/paymenter.json index 68f24d1af..29396655c 100644 --- a/frontend/public/json/paymenter.json +++ b/frontend/public/json/paymenter.json @@ -30,8 +30,10 @@ "username": "admin@paymenter.org", "password": "paymenter" }, - "notes": { - "text": "After installation, navigate to the directory with `cd /opt/paymenter` and run `php artisan app:init`. An interactive setup will prompt you to enter your company name and application URL.", - "type": "info" - } + "notes": [ + { + "text": "After installation, navigate to the directory with `cd /opt/paymenter` and run `php artisan app:init`. An interactive setup will prompt you to enter your company name and application URL.", + "type": "info" + } + ] } 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 4/5] 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" From 9024023199725af232abd2e1422de776ed86bcbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Pastorello?= Date: Fri, 11 Apr 2025 11:02:23 -0300 Subject: [PATCH 5/5] Update paymenter-install.sh --- install/paymenter-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/paymenter-install.sh b/install/paymenter-install.sh index 94001df34..da0610bef 100644 --- a/install/paymenter-install.sh +++ b/install/paymenter-install.sh @@ -36,11 +36,11 @@ $STD apt-get install -y \ mariadb-server \ nginx \ redis -msg_info "Installed PHP" +msg_ok "Installed PHP" msg_info "Installing Composer" $STD curl -fsSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -msg_info "Installed Composer" +msg_ok "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/')