Skip to content

Commit 786138f

Browse files
authored
Update virtualhost-nginx.sh
1 parent e24366c commit 786138f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtualhost-nginx.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ if [ "$action" == 'create' ]
144144
ln -s $sitesAvailable$domain $sitesEnable$domain
145145

146146
### restart Nginx
147-
service nginx restart
147+
systemctl reload nginx
148148

149149
### show the finished message
150150
echo -e $"Complete! \nYou now have a new Virtual Host \nYour new host is: http://$domain \nAnd its located at $rootDir"
@@ -170,7 +170,7 @@ if [ "$action" == 'create' ]
170170
rm $sitesEnable$domain
171171

172172
### restart Nginx
173-
service nginx restart
173+
systemctl reload nginx
174174

175175
### Delete virtual host rules files
176176
rm $sitesAvailable$domain

0 commit comments

Comments
 (0)