Skip to content

Commit

Permalink
2.0.6
Browse files Browse the repository at this point in the history
* SSL certificate issue did not work
* changing PHP versions did not work for the https version of the site
  • Loading branch information
progreccor committed Apr 20, 2024
1 parent 34e9cee commit 79a09a3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions change_php_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ function change_php_version() {
cp "/etc/httpd/conf.d/${site_name}.conf" "/etc/httpd/conf.d/${site_name}.conf.old"
# Меняем путь к сокету
sed -i -r "s|/var/opt/remi/php[0-9][0-9]/run/php-fpm/|/var/opt/remi/${selected_php}/run/php-fpm/|g" "/etc/httpd/conf.d/${site_name}.conf"
if [[ -f "/etc/httpd/conf.d/${site_name}-ssl.conf" ]]; then
sed -i -r "s|/var/opt/remi/php[0-9][0-9]/run/php-fpm/|/var/opt/remi/${selected_php}/run/php-fpm/|g" "/etc/httpd/conf.d/${site_name}-ssl.conf"
fi
if [[ -f "/etc/httpd/conf.d/${site_name}-le-ssl.conf" ]]; then
sed -i -r "s|/var/opt/remi/php[0-9][0-9]/run/php-fpm/|/var/opt/remi/${selected_php}/run/php-fpm/|g" "/etc/httpd/conf.d/${site_name}-le-ssl.conf"
fi
if cmp -s "/etc/httpd/conf.d/${site_name}.conf" "/etc/httpd/conf.d/${site_name}.conf.old"; then
echo -e "Замен в файле ${RED}не произведено${WHITE}."
rm "/etc/httpd/conf.d/${site_name}.conf.old"
Expand Down
2 changes: 1 addition & 1 deletion mc.menu
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ k Удалить базу данных

+ d /var/www/ & t d
6 Пoлyчить/Oтoзвaть/Пpoдлить SSL cert.
bash /root/rish/certs.sh
bash /root/rish/certs.sh %f

r Перезaпуск и стaтус серверa apache
bash /root/rish/apache_restart.sh
Expand Down
1 change: 1 addition & 0 deletions php_multi_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function php_multi_install() {
echo -e "max_execution_time = ${GREEN}60${WHITE}"
echo -e "max_input_vars = ${GREEN}20000${WHITE}"

echo
echo -e "Ставим ${GREEN}imagick${WHITE}?"
if vertical_menu "current" 2 0 5 "Да" "Нет"
then
Expand Down
4 changes: 4 additions & 0 deletions ri.sh
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ if ! grep -q "MYSQLPASS" ~/.bashrc; then
STEP="Установка MariaDB"
if ! check_step "$STEP"; then
Up
echo
echo -e "Установка ${GREEN}MariaDB${WHITE} в качестве базы данных."
Down
mariadb_install
Expand All @@ -867,6 +868,9 @@ if ! grep -q "MYSQLPASS" ~/.bashrc; then

STEP="Установка certbot"
if ! check_step "$STEP"; then
Up
echo
Down
echo -e "Ставим ${GREEN}certbot${WHITE} для получения SSL сертификатов?"
if vertical_menu "current" 2 0 5 "Да" "Нет"; then
Install "certbot python3-certbot-apache"
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.5
2.0.6

0 comments on commit 79a09a3

Please sign in to comment.