erreur ->
This commit is contained in:
parent
4c70a79d82
commit
11b5e1a1c2
|
@ -43,7 +43,7 @@ if ($r["enabled"]) {
|
|||
<h3><?php __("Restore a SQL backup"); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
if (!$mysql->restore($restfile,true,$r)) {
|
||||
if (!$mysql->restore($restfile,true,$id)) {
|
||||
$error=$err->errstr();
|
||||
} else {
|
||||
$error=_("Your database has been restored, check out the previous text for error messages.");
|
||||
|
|
|
@ -298,7 +298,7 @@ class m_mysql {
|
|||
*/
|
||||
function restore($file,$stdout,$id) {
|
||||
global $err,$bro,$mem,$L_MYSQL_HOST;
|
||||
if (!$r=$mysql->get_mysql_details($id)) {
|
||||
if (!$r=$this->get_mysql_details($id)) {
|
||||
return false;
|
||||
}
|
||||
if (!($fi=$bro->convertabsolute($file,0))) {
|
||||
|
|
|
@ -182,7 +182,7 @@ ln -nsf /var/alternc/bureau /var/alternc/dns/$FQDN_LETTER/$FQDN
|
|||
# Bind stuff
|
||||
touch /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf
|
||||
chown root:bind /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf
|
||||
chmod 640 /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf
|
||||
chmod 640 /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf
|
||||
touch /var/run/alternc/refresh_slave
|
||||
/usr/lib/alternc/slave_dns
|
||||
|
||||
|
@ -207,6 +207,10 @@ if [ -e /etc/courier/authmysqlrc ] ; then
|
|||
chmod 640 /etc/courier/authmysqlrc
|
||||
fi
|
||||
|
||||
if [ -e /etc/proftpd.conf ] ; then
|
||||
chmod 640 /etc/proftpd.conf
|
||||
fi
|
||||
|
||||
#######################################################################
|
||||
# Reload services
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue