DewlanceVPS
Verified User
- Joined
- Oct 3, 2016
- Messages
- 105
Hello,
We need to manually create Hundreds of packages which take lot of time. Only main time killer is manually creating packages because of directadmin conversion tool does not import packages.
However I think its possible to convert packages by using bash script, I am not so good in this but I think it can be achieve by this method by running bash script in packages folder of cpanel.
for packages "ls /var/cpanel/packages"
do cp packages packages.pkg
Put default package codes of directadmin in all packages.pkg file then again run while loop to get value from each cpanel package-name file and add it into directadmin package-name.pkg file (one by one).
(Only important thing is BWLIMIT, QUOTA, Email, Addon, Park domain and all other default value of directadmin is not needed to change.)
Any help?
Thanks.
We need to manually create Hundreds of packages which take lot of time. Only main time killer is manually creating packages because of directadmin conversion tool does not import packages.
However I think its possible to convert packages by using bash script, I am not so good in this but I think it can be achieve by this method by running bash script in packages folder of cpanel.
for packages "ls /var/cpanel/packages"
do cp packages packages.pkg
Put default package codes of directadmin in all packages.pkg file then again run while loop to get value from each cpanel package-name file and add it into directadmin package-name.pkg file (one by one).
(Only important thing is BWLIMIT, QUOTA, Email, Addon, Park domain and all other default value of directadmin is not needed to change.)
Any help?
Thanks.
Last edited: