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

Import cPanel backup in vestacp
35 stars 31 forks source link

Exiting after grep your /etc/passwd #6

Open thomasgatt opened 6 years ago

thomasgatt commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Thank you!

ibrahimhajjaj commented 4 years ago

did you fix it ?