mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
add init_sys_channel utility to create the sys channel in case of headless installation - issue #1909
This commit is contained in:
13
util/init_sys_channel
Executable file
13
util/init_sys_channel
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env php
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if(!file_exists('include/cli_startup.php')) {
|
||||||
|
echo 'Run init_sys_channel from the top level Hubzilla web directory, as util/init_sys_channel' . PHP_EOL;
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
require_once('include/cli_startup.php');
|
||||||
|
|
||||||
|
cli_startup();
|
||||||
|
|
||||||
|
create_sys_channel();
|
||||||
Reference in New Issue
Block a user