Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exiting after grep your /etc/passwd #6

Open
thomasgatt opened this issue Jan 31, 2018 · 3 comments
Open

Exiting after grep your /etc/passwd #6

thomasgatt opened this issue Jan 31, 2018 · 3 comments

Comments

@thomasgatt
Copy link

thomasgatt commented Jan 31, 2018

Hi, I'm trying to use your script to import a cPanel backup.

root@ubuntu-server1:~# bash sk_importer_beta0.5.sh backup-1.31.2018_03-55-08_fusion.tar.gz
Checking provided file...
OK - Gziped File
Creating tmp..
Extracting backup...
Backup extracted without errors...
Access tmp directory /root/sk_tmp/backup-1.31.2018_03-55-08_fusion
Get prefix...
I like your prefix, start working
Get user: fusion
/usr/local/vesta/bin/v-list-users: line 93: /data/users/admin/user.conf: No such file or directory
/usr/local/vesta/bin/v-list-users: line 93: /data/users/jrdev/user.conf: No such file or directory
/usr/local/vesta/bin/v-list-users: line 93: /data/users/fusion/user.conf: No such file or directory
User alredy exist on your server, maybe on vestacp or in your /etc/passwd
**
Grep your /etc/passwd
**
Stop Working, clening...

I've created the user 'fusion' already and added the website too. Any ideas?

@Skamasle
Copy link
Owner

Skamasle commented Feb 24, 2018

If user exists in vestacp or in /etc/passwd / system restore fail

So you can restore cpanel account only if user not exists and website not added

For any reason I see this today, only it say commented 24 days ago, I connect every days to github :S

@thomasgatt
Copy link
Author

Thank you!

@ibrahimhajjaj
Copy link

did you fix it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants