Fixed initial setup not creating config files
This commit is contained in:
@ -140,6 +140,7 @@ if(!@$version=$db->query("SELECT value FROM settings WHERE setting='version';"))
|
|||||||
}
|
}
|
||||||
$stmt=$db->prepare("UPDATE settings SET value=? WHERE setting='version';");
|
$stmt=$db->prepare("UPDATE settings SET value=? WHERE setting='version';");
|
||||||
$stmt->execute([DBVERSION]);
|
$stmt->execute([DBVERSION]);
|
||||||
|
}
|
||||||
foreach(PHP_VERSIONS as $version){
|
foreach(PHP_VERSIONS as $version){
|
||||||
if(!file_exists("/etc/php/$version/fpm/conf.d/")){
|
if(!file_exists("/etc/php/$version/fpm/conf.d/")){
|
||||||
mkdir("/etc/php/$version/fpm/conf.d/", 0755, true);
|
mkdir("/etc/php/$version/fpm/conf.d/", 0755, true);
|
||||||
@ -259,4 +260,3 @@ php_admin_value[open_basedir] = /usr/share/adminer:/tmp
|
|||||||
exec("service nginx reload");
|
exec("service nginx reload");
|
||||||
$db->exec('UPDATE service_instances SET reload=1;');
|
$db->exec('UPDATE service_instances SET reload=1;');
|
||||||
echo "Done - Database and files have been updated to the latest version :)\n";
|
echo "Done - Database and files have been updated to the latest version :)\n";
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user