File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 40
40
NGINX=/usr/sbin/nginx
41
41
fi
42
42
43
- # # Default values .
43
+ # # Default value for the configuration directory .
44
44
NGINX_CONF_DIR=/etc/nginx
45
- STARTUP_PROGRAM_NAME=service
46
45
47
46
function print_usage() {
48
47
echo " $SCRIPTNAME [-c <nginx configuration base directory> default: /etc/nginx] [ -s <startup program name> default: service] <site name>"
@@ -58,10 +57,12 @@ function get_startup_program_name() {
58
57
59
58
[[ $1 =~ [[:alnum:]/-]]+nginx$ ]] && value=" $1 -s reload"
60
59
61
- echo " $value "
62
-
60
+ echo " $value "
63
61
}
64
62
63
+ # # The default start up program is service.
64
+ STARTUP_PROGRAM_NAME=$( get_startup_program_name service)
65
+
65
66
# # Create the relative path to the vhost file.
66
67
# # $1: configuration file name (usually the vhost)
67
68
# # $2: available sites directory name (usually sites-available)
You can’t perform that action at this time.
0 commit comments