Skip to content

Commit

Permalink
Resolve issue cannot enable FastCGI Cache - bump to 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nntoan committed Apr 2, 2024
1 parent b5df934 commit d6d1fc1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions files/scripts/capima.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# FILE: /usr/sbin/capima
# DESCRIPTION: Capima Box Manager - Everything you need to use Capima Box!
# AUTHOR: Toan Nguyen (htts://github.com/nntoan)
# VERSION: 1.4.1
# VERSION: 1.4.2
# ------------------------------------------------------------------------------

# Use colors, but only if connected to a terminal, and that terminal
Expand Down Expand Up @@ -107,7 +107,7 @@ declare -A PHPFPM_CONFDIRS=(
["php82"]="/etc/php82rc/fpm.d"
["php83"]="/etc/php83rc/fpm.d"
)
readonly VERSION="1.4.1"
readonly VERSION="1.4.2"
readonly PATCH_VERSION="20240401.1"
readonly SELF=$(basename "$0")
readonly UPDATE_BASE="${CAPIMAURL}/files/scripts"
Expand Down Expand Up @@ -350,17 +350,17 @@ function CreateNewWebApp {
# Enable FastCGI Cache for webapp
read -r -p "${BLUE}Do you want to enable Nginx FastCGI Cache for your webapp? [Y/N]${NORMAL} " response
case "$response" in
[nN][oO]|[nN]|*)
USE_CAPICACHE="N"
echo -ne "${YELLOW}Ok, skipping...${NORMAL}"
echo ""
;;
[yY][eE][sS]|[yY])
USE_CAPICACHE="Y"
echo -ne "${YELLOW}Your web application will use FastCGI Cache. For more information, please visit: https://runcloud.io/blog/nginx-fastcgi-cache/"
echo -ne "...${NORMAL} ${GREEN}DONE${NORMAL}"
echo ""
;;
[nN][oO]|[nN]|*)
USE_CAPICACHE="N"
echo -ne "${YELLOW}Ok, skipping...${NORMAL}"
echo ""
;;
esac

# Enable SSL for webapp
Expand Down Expand Up @@ -521,17 +521,17 @@ function UpdateWebApp {
# Enable FastCGI Cache for webapp
read -r -p "${BLUE}Do you want to enable Nginx FastCGI Cache for your webapp? [Y/N]${NORMAL} " response
case "$response" in
[nN][oO]|[nN]|*)
USE_CAPICACHE="N"
echo -ne "${YELLOW}Ok, skipping...${NORMAL}"
echo ""
;;
[yY][eE][sS]|[yY])
USE_CAPICACHE="Y"
echo -ne "${YELLOW}Your web application will use FastCGI Cache. For more information, please visit: https://runcloud.io/blog/nginx-fastcgi-cache/"
echo -ne "...${NORMAL} ${GREEN}DONE${NORMAL}"
echo ""
;;
[nN][oO]|[nN]|*)
USE_CAPICACHE="N"
echo -ne "${YELLOW}Ok, skipping...${NORMAL}"
echo ""
;;
esac

# Switch PHP version for webapp
Expand Down
2 changes: 1 addition & 1 deletion files/scripts/capima.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.1
1.4.2

0 comments on commit d6d1fc1

Please sign in to comment.