Skip to content

Commit efb6b36

Browse files
Fix Import of Addon Domains (hestiacp#3424)
* Fix Import of Addon Domains Addon domains were not being imported as addon domains but as subdomains of the main domain. * Update v-import-cpanel --------- Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
1 parent 65d73e9 commit efb6b36

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/v-import-cpanel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ echo "Converting addons domains, subdomains and some other fun"
174174
cp sds hst_sds
175175
cp sds2 hst_sds2
176176
sed -i 's/_/./g' hst_sds
177+
cat addons | while read ddon_domain addon_sub
178+
do
179+
echo "Converting default subdomain: $addon_sub in domain: $addon_domain"
180+
sed -i -e "s/$addon_sub/$addon_domain/g" hst_sds
181+
sed -i -e "s/$addon_sub/$addon_domain/g" hst_sds2
182+
mv userdata/$addon_sub userdata/${addon_domain}
183+
done
177184
sed -i 's/public_html/public@html/g; s/_/./g; s/public@html/public_html/g; s/=/ /g' hst_sds2
178185

179186
tput setaf 2

0 commit comments

Comments
 (0)