File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ source $VESTA/func/main.sh
2525
2626# Export PATH for cron
2727PATH=$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'
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments