Fixed initial setup not creating config files

This commit is contained in:
Daniel Winzen
2019-02-23 07:11:19 +01:00
parent a520c987e6
commit 31c6020608

View File

@ -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->execute([DBVERSION]);
}
foreach(PHP_VERSIONS as $version){
if(!file_exists("/etc/php/$version/fpm/conf.d/")){
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");
$db->exec('UPDATE service_instances SET reload=1;');
echo "Done - Database and files have been updated to the latest version :)\n";
}