Skamasle/sk-import-cpanel-backup-to-vestacp

Exiting after grep your /etc/passwd

thomasgatt opened this issue · 3 comments

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?

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

Thank you!

did you fix it ?