[fix] missing global + proper shebang on upgrade script
This commit is contained in:
parent
b6a2f74326
commit
f50f453707
|
@ -1904,6 +1904,7 @@ class m_dom {
|
||||||
* so that apache & bind could do their job
|
* so that apache & bind could do their job
|
||||||
*/
|
*/
|
||||||
function update_domains() {
|
function update_domains() {
|
||||||
|
global $db, $hooks;
|
||||||
if (posix_getuid()!=0) {
|
if (posix_getuid()!=0) {
|
||||||
echo "FATAL: please lauch me as root\n";
|
echo "FATAL: please lauch me as root\n";
|
||||||
exit();
|
exit();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/php -q
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// we don't check our AlternC session
|
// we don't check our AlternC session
|
||||||
|
|
Loading…
Reference in New Issue