File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22# info: Enable FastCGI cache for nginx
3- # options: USER DOMAIN [DURATION] [DEBUG] [ RESTART]
3+ # options: USER DOMAIN [DURATION] [RESTART]
44#
55# example: v-add-fastcgi-cache user domain.tld 30m
66#
77# This function enables FastCGI cache for nginx
88# Acceptable values for duration is time in seconds (10s) minutes (10m) or days (10d)
9- # Add "yes" as last parameter to append debug information to response headers
9+ # Add "yes" as last parameter to restart nginx
1010
1111# ----------------------------------------------------------#
1212# Variables & Functions #
@@ -30,7 +30,7 @@ source_conf "$HESTIA/conf/hestia.conf"
3030# Verifications #
3131# ----------------------------------------------------------#
3232
33- check_args ' 2' " $# " ' USER DOMAIN [DURATION] [DEBUG] [ RESTART]'
33+ check_args ' 2' " $# " ' USER DOMAIN [DURATION] [RESTART]'
3434is_format_valid ' user' ' domain' ' restart'
3535is_object_valid ' user' ' USER' " $user "
3636is_object_unsuspended ' user' ' USER' " $user "
You can’t perform that action at this time.
0 commit comments