bugfixes found while migration on linkjunk

This commit is contained in:
Serghey Rodin 2012-09-25 23:19:48 +03:00
commit 652754e62c
2 changed files with 2 additions and 1 deletions

View file

@ -18,7 +18,7 @@ source $VESTA/func/main.sh
# Json function
json_list_iface() {
dev=$(cat /proc/net/dev |grep : |cut -f 1 -d : |tr -d ' ' |grep -v lo)
int_counter=$(echo "$interfaces" | wc -l)
int_counter=$(echo "$dev" | wc -l)
i=1
echo '['
for interface in $dev; do

View file

@ -367,6 +367,7 @@ upd_web_domain_values() {
group="$user"
email="$user@$domain"
docroot="$HOMEDIR/$user/web/$domain/public_html"
sdocroot=$docroot
if [ "$SSL_HOME" = 'single' ]; then
sdocroot="$HOMEDIR/$user/web/$domain/public_shtml" ;
fi