Rebuild User script Topic is solved

Questions regarding the API
Application Programming Interface
madip
Posts: 8
Joined: Fri Feb 06, 2015 7:19 am

Rebuild User script

Postby 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

skurudo
VestaCP Team
Posts: 7676
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Rebuild User script

Postby 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.

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

Re: Rebuild User script

Postby 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

skurudo
VestaCP Team
Posts: 7676
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Rebuild User script  Topic is solved

Postby 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.

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

Re: Rebuild User script

Postby madip » Wed Jul 22, 2015 6:58 am

Perfect!
got it !

thanks

skurudo
VestaCP Team
Posts: 7676
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Rebuild User script

Postby skurudo » Wed Jul 22, 2015 8:27 am

madip wrote:Perfect!
got it !


You're welcome ;-)

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

Re: Rebuild User script

Postby 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:)

skurudo
VestaCP Team
Posts: 7676
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Rebuild User script

Postby 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
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now


Return to “Scripting / API”



Who is online

Users browsing this forum: No registered users and 2 guests