File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -717,11 +717,9 @@ sleep 1
717717fi
718718
719719# Generate $NGINX_CONF
720- if [ -f $NGINX_CONF ];
721- then
722- rm $NGINX_CONF
723- touch $NGINX_CONF
724- cat << NGINX_CREATE > $NGINX_CONF
720+ rm -f $NGINX_CONF
721+ touch $NGINX_CONF
722+ cat << NGINX_CREATE > $NGINX_CONF
725723user www-data;
726724worker_processes 2;
727725pid /run/nginx.pid;
@@ -819,15 +817,12 @@ http {
819817NGINX_CREATE
820818print_text_in_color " $IGreen " " $NGINX_CONF was successfully created"
821819sleep 1
822- fi
823820
824- # Generate $NGINX_CONF
825- if [ -f " $NGINX_DEF " ];
826- then
827- rm -f $NGINX_DEF
828- rm -f " $SITES_ENABLED " /default
829- touch $NGINX_DEF
830- cat << NGINX_DEFAULT > "$NGINX_DEF "
821+ # Generate $NGINX_DEF
822+ rm -f $NGINX_DEF
823+ rm -f " $SITES_ENABLED " /default
824+ touch $NGINX_DEF
825+ cat << NGINX_DEFAULT > "$NGINX_DEF "
831826##
832827# You should look at the following URL's in order to grasp a solid understanding
833828# of Nginx configuration files in order to fully unleash the power of Nginx.
@@ -887,7 +882,6 @@ server {
887882NGINX_DEFAULT
888883print_text_in_color " $IGreen " " $NGINX_DEF was successfully created"
889884sleep 1
890- fi
891885
892886# Enable new config
893887ln -s " $NGINX_DEF " " $SITES_ENABLED " /default
You can’t perform that action at this time.
0 commit comments