[fix] missing global + proper shebang on upgrade script

This commit is contained in:
Benjamin Sonntag 2018-07-17 15:10:08 +02:00
parent b6a2f74326
commit f50f453707
2 changed files with 2 additions and 0 deletions

View File

@ -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();

View File

@ -1,3 +1,4 @@
#!/usr/bin/php -q
<?php
// we don't check our AlternC session