Skip to content

Commit a12c625

Browse files
committed
minor bugfixes for 0.9.7 release
1 parent 20e407d commit a12c625

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

bin/v_update_sys_ip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ for ip in $ip_list; do
6060
mask=$(/sbin/ifconfig |grep -w $ip |awk -F "Mask:" '{print $2}')
6161

6262
# Adding vesta ip
63-
ip_add_vesta
63+
create_vesta_ip
6464

6565
# Adding namehosting support
6666
namehost_ip_support

bin/v_update_sys_queue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ source $VESTA/func/main.sh
2525

2626
# Export PATH for cron
2727
PATH=$PATH:$BIN
28-
export $PATH
28+
2929

3030
#----------------------------------------------------------#
3131
# Verifications #
@@ -44,7 +44,7 @@ case $queue in
4444
rm $VESTA/data/queue/restart.pipe;
4545
touch $VESTA/data/queue/restart.pipe;;
4646
stats) bash $VESTA/data/queue/stats.pipe;;
47-
backup) bash $VESTA/data/queue/backup.pip;;
47+
backup) bash $VESTA/data/queue/backup.pipe;;
4848
disk) bash $VESTA/data/queue/disk.pipe;;
4949
traffic) bash $VESTA/data/queue/traffic.pipe;;
5050
*) check_args '1' '0' 'queue'

web/templates/admin/list_db.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
$spnd_action = 'suspend' ;
1212
}
1313

14-
if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "http://".$_SERVER["HTTP_HOST"]."/phpMyAdmin/";
15-
if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$_SERVER["HTTP_HOST"]."/phpPgAdmin/";
14+
list($http_host, $port) = split(':', $_SERVER["HTTP_HOST"]);
15+
if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/";
16+
if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$http_host."/phpPgAdmin/";
1617
?>
1718

1819

web/templates/user/list_db.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
$spnd_action = 'suspend' ;
1212
}
1313

14-
if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "http://".$_SERVER["HTTP_HOST"]."/phpMyAdmin/";
15-
if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$_SERVER["HTTP_HOST"]."/phpPgAdmin/";
14+
list($http_host, $port) = split(':', $_SERVER["HTTP_HOST"]);
15+
if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/";
16+
if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$http_host."/phpPgAdmin/";
1617
?>
1718

1819

0 commit comments

Comments
 (0)