We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Rebuild User script
Rebuild User script
Hi,
what sort of operations does v-rebuild-user script?
It seems that it recreates and overwrites some stuffs configuration?
Is it safe in production environment?
thanks
what sort of operations does v-rebuild-user script?
It seems that it recreates and overwrites some stuffs configuration?
Is it safe in production environment?
thanks
Re: Rebuild User script
# info: rebuild system usermadip wrote:what sort of operations does v-rebuild-user script?
It seems that it recreates and overwrites some stuffs configuration?
# The function rebuilds system user account.
and this command does rebuild -> /usr/local/vesta/func/rebuild.sh -> template, data files, permissions on logs, directory tree and other.
For who? For admin? For user? ;-) If you made custom changes in user config apache/nginx and make rebuild, then you get standart config from template. It's safe? Hmm, safe. But if you have something else in mind, tell me.madip wrote:Is it safe in production environment?
Re: Rebuild User script
Thanks skurudo.
Maybe I was not clear. If i make a rebuild on a user(any user) that has a website in production, does rebuild remove all files and folder in virtualhost docroot? Does rebuild reset databases? Does rebuild reset all configurations for that website?
Can i do this action without break the site? I read the code and it seems it's not a good idea to make a rebuild when the site of an "user account" is in production.....
help me to understand.
thanks
Maybe I was not clear. If i make a rebuild on a user(any user) that has a website in production, does rebuild remove all files and folder in virtualhost docroot? Does rebuild reset databases? Does rebuild reset all configurations for that website?
Can i do this action without break the site? I read the code and it seems it's not a good idea to make a rebuild when the site of an "user account" is in production.....
help me to understand.
thanks
Re: Rebuild User script
Rebuild change only configuration files, not user data like user files or user database.madip wrote:Maybe I was not clear. If i make a rebuild on a user(any user) that has a website in production, does rebuild remove all files and folder in virtualhost docroot? Does rebuild reset databases? Does rebuild reset all configurations for that website?
Yep, you do. There is one moment, if you make some modification in apache2.conf/nginx.conf for user, this will be changed.. break it your site? I don't know.madip wrote:Can i do this action without break the site? I read the code and it seems it's not a good idea to make a rebuild when the site of an "user account" is in production.....
Re: Rebuild User script
Perfect!
got it !
thanks
got it !
thanks
Re: Rebuild User script
You're welcome ;-)madip wrote:Perfect!
got it !
-
- Posts: 2
- Joined: Fri Jul 22, 2016 1:30 pm
Re: Rebuild User script
skurudo wrote:Rebuild change only configuration files, not user data like user files or user database.madip wrote:Maybe I was not clear. If i make a rebuild on a user(any user) that has a website in production, does rebuild remove all files and folder in virtualhost docroot? Does rebuild reset databases? Does rebuild reset all configurations for that website?
Yep, you do. There is one moment, if you make some modification in apache2.conf/nginx.conf for user, this will be changed.. break it your site? I don't know.madip wrote:Can i do this action without break the site? I read the code and it seems it's not a good idea to make a rebuild when the site of an "user account" is in production.....
Good job! Thank you very much:)
Re: Rebuild User script
First steps to make good docs for all of us, guys! ;-)
API documentation and examples:
http://vestacp.com/docs/API.pdf
CLI commands list and descriptions:
http://vestacp.com/docs/CLI.txt
API documentation and examples:
http://vestacp.com/docs/API.pdf
CLI commands list and descriptions:
http://vestacp.com/docs/CLI.txt