Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

Rebuild User script

Questions regarding the API
Application Programming Interface
Locked
  • Print view
Advanced search
8 posts • Page 1 of 1
madip
Posts: 8
Joined: Fri Feb 06, 2015 7:19 am

Rebuild User script

Post by madip » Tue Jul 21, 2015 8:56 am

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Rebuild User script

Post by skurudo » Tue Jul 21, 2015 10:39 am

madip wrote:what sort of operations does v-rebuild-user script?
It seems that it recreates and overwrites some stuffs configuration?
# info: rebuild system user
# 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.
madip wrote:Is it safe in production environment?
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.
Top

madip
Posts: 8
Joined: Fri Feb 06, 2015 7:19 am

Re: Rebuild User script

Post by madip » Tue Jul 21, 2015 10:31 pm

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Rebuild User script

Post by skurudo » Wed Jul 22, 2015 6:24 am

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?
Rebuild change only configuration files, not user data like user files or user database.
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.....
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.
Top

madip
Posts: 8
Joined: Fri Feb 06, 2015 7:19 am

Re: Rebuild User script

Post by madip » Wed Jul 22, 2015 6:58 am

Perfect!
got it !

thanks
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Rebuild User script

Post by skurudo » Wed Jul 22, 2015 8:27 am

madip wrote:Perfect!
got it !
You're welcome ;-)
Top

malinscky.ilya
Posts: 2
Joined: Fri Jul 22, 2016 1:30 pm

Re: Rebuild User script

Post by malinscky.ilya » Fri Jul 22, 2016 1:33 pm

skurudo wrote:
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?
Rebuild change only configuration files, not user data like user files or user database.
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.....
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.

Good job! Thank you very much:)
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Rebuild User script

Post by skurudo » Fri Sep 23, 2016 12:44 pm

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
Top


Locked
  • Print view

8 posts • Page 1 of 1

Return to “Scripting / API”



  • 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