Skip to content

Commit 328602b

Browse files
authored
Prevent restore domains inside public_html
This prevent duplicate data of addon domains stored in public_html
1 parent 255e007 commit 328602b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-import-cpanel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ function get_domain_path() {
210210
chown $new_user:$new_user -R /home/$new_user/web/$cp_domain/public_html
211211
chown $new_user:www-data /home/$new_user/web/$cp_domain/public_html
212212
chmod 751 /home/$new_user/web/$cp_domain/public_html
213+
echo "$cp_domain" >> exclude_path
213214
fi
214215
done
215216
}
@@ -287,7 +288,7 @@ else
287288
fi
288289

289290
# Try SSL
290-
tput setaf 1
291+
tput setaf 2
291292
echo "Copy SSL files"
292293
tput sgr0
293294
for ssl_domain in apache_tls/*

0 commit comments

Comments
 (0)