Skip to content

Commit 277f6ce

Browse files
authored
Paymenter: Installation and update fixes (#7792)
1 parent a6d6f79 commit 277f6ce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ct/paymenter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function update_script() {
3939
if check_for_gh_release "paymenter" "paymenter/paymenter"; then
4040
msg_info "Updating ${APP}"
4141
cd /opt/paymenter
42-
$STD php artisan p:upgrade --no-interaction
42+
$STD php artisan app:upgrade --no-interaction
4343
echo "${CHECK_UPDATE_RELEASE}" >~/.paymenter
4444
msg_ok "Updated Successfully"
4545
fi

install/paymenter-install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $STD apt-get install -y \
2121
msg_ok "Installed Dependencies"
2222

2323
setup_mariadb
24-
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="common,mysql,fpm,redis" setup_php
24+
PHP_VERSION="8.3" PHP_FPM="YES" PHP_MODULE="common,mysql,redis" setup_php
2525
setup_composer
2626
fetch_and_deploy_gh_release "paymenter" "paymenter/paymenter" "prebuild" "latest" "/opt/paymenter" "paymenter.tar.gz"
2727
chmod -R 755 /opt/paymenter/storage/* /opt/paymenter/bootstrap/cache/
@@ -30,7 +30,7 @@ msg_info "Setting up database"
3030
DB_NAME=paymenter
3131
DB_USER=paymenter
3232
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
33-
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql mysql
33+
mariadb-tzinfo-to-sql /usr/share/zoneinfo | mariadb mysql
3434
$STD mariadb -u root -e "CREATE DATABASE $DB_NAME;"
3535
$STD mariadb -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS';"
3636
$STD mariadb -u root -e "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'localhost' WITH GRANT OPTION;"
@@ -108,8 +108,8 @@ RestartSec=5s
108108
[Install]
109109
WantedBy=multi-user.target
110110
EOF
111-
systemctl enable --now paymenter
112-
systemctl enable --now redis-server
111+
systemctl enable -q --now paymenter
112+
systemctl enable -q --now redis-server
113113
msg_ok "Setup Service"
114114

115115
motd_ssh

0 commit comments

Comments
 (0)