Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Rebuild Web Config for all users.

General questions about VestaCP
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Rebuild Web Config for all users.
  • Quote

Post by plutocrat » Wed Feb 14, 2018 3:40 am

Hi,
With the recent upgrades, the config of the webservers changed. Is there a way to rebuild all the users in one command so they have the new config. I suspect that this change prevented one of the users from being correctly deleted.

Something like ...
for USER in $(v-list-users plain | cut -f 1)
do
v-rebuild-web-domains $USER
done
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: Rebuild Web Config for all users.
  • Quote

Post by plutocrat » Wed Feb 14, 2018 4:16 am

Just tried this and it worked. Got some errors with nginx restart, but I think that was because I was doing it so fast. So I'd go for this instead.

Code: Select all

#!/bin/bash
# Rebuild all users with new webserver config
for USER in $(v-list-users plain | cut -f 1)
do 
	v-rebuild-web-domains $USER
	sleep 1
done
I'd suggest that you run this on any servers which were recently upgraded, because if you delete a user, the webserver config will break currently.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password