From f50f45370770bfaa6b9cf765161cedd78a96f2c7 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Tue, 17 Jul 2018 15:10:08 +0200 Subject: [PATCH] [fix] missing global + proper shebang on upgrade script --- bureau/class/m_dom.php | 1 + install/upgrades/3.5.0.2.php | 1 + 2 files changed, 2 insertions(+) diff --git a/bureau/class/m_dom.php b/bureau/class/m_dom.php index 58755dcc..12346c17 100644 --- a/bureau/class/m_dom.php +++ b/bureau/class/m_dom.php @@ -1904,6 +1904,7 @@ class m_dom { * so that apache & bind could do their job */ function update_domains() { + global $db, $hooks; if (posix_getuid()!=0) { echo "FATAL: please lauch me as root\n"; exit(); diff --git a/install/upgrades/3.5.0.2.php b/install/upgrades/3.5.0.2.php index 4395db26..22c83c15 100644 --- a/install/upgrades/3.5.0.2.php +++ b/install/upgrades/3.5.0.2.php @@ -1,3 +1,4 @@ +#!/usr/bin/php -q