Update paymenter-install.sh

This commit is contained in:
Nícolas Pastorello 2025-04-11 10:54:09 -03:00 committed by GitHub
parent 19e0dd8ee4
commit 397218d4f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"