X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Finstall_cli.php;h=ac3fe3e6573125c8347054d70ea13c30f6cab70f;hb=bf2f1c23b7dd32a7b860c25e64a81ad37c68109a;hp=dadbcf66f0e80329aeb95776ba9b4a0c080fc003;hpb=8a28d9cc4de896c154325c8ca0e346d78fc4c510;p=quix0rs-gnu-social.git diff --git a/scripts/install_cli.php b/scripts/install_cli.php index dadbcf66f0..ac3fe3e657 100755 --- a/scripts/install_cli.php +++ b/scripts/install_cli.php @@ -21,8 +21,9 @@ * @package Installation * * @author Brion Vibber + * @author Mikael Nordfeldth * @license GNU Affero General Public License http://www.gnu.org/licenses/ - * @version 0.9.x + * @version 1.1.x * @link http://status.net */ @@ -72,6 +73,7 @@ class CliInstaller extends Installer '--path' => 'path', '--sitename' => 'sitename', '--fancy' => 'fancy', + '--ssl' => 'ssl', '--dbtype' => 'dbtype', '--host' => 'host', @@ -82,7 +84,8 @@ class CliInstaller extends Installer '--admin-nick' => 'adminNick', '--admin-pass' => 'adminPass', '--admin-email' => 'adminEmail', - '--admin-updates' => 'adminUpdates' + + '--site-profile' => 'siteProfile' ); foreach ($map as $arg => $target) { if (substr($arg, 0, 2) == '--') { @@ -102,15 +105,15 @@ class CliInstaller extends Installer // defaults $this->dbtype = 'mysql'; - $this->adminUpdates = true; $this->verbose = true; + // ssl is defaulted in lib/installer.php foreach ($options as $option) { $arg = $option[0]; if (isset($map[$arg])) { $var = $map[$arg]; $this->$var = $option[1]; - if ($var == 'adminUpdates' || $arg == '--fancy') { + if ($arg == '--fancy') { $this->$var = ($option[1] != 'false') && ($option[1] != 'no'); } } else if ($arg == '--skip-config') { @@ -157,6 +160,8 @@ install_cli.php - StatusNet command-line installer -p --path= Use as path name --sitename User-friendly site name (required) --fancy Whether to use fancy URLs (default no) + --ssl Server SSL enabled (default never), + [never | sometimes | always] --dbtype 'mysql' (default) or 'pgsql' --host Database hostname (required) @@ -170,6 +175,8 @@ install_cli.php - StatusNet command-line installer --admin-updates 'yes' (default) or 'no', whether to subscribe admin to update@status.net (default yes) + --site-profile site profile ['public', 'private' (default), 'community', 'singleuser'] + --skip-config Don't write a config.php -- use with caution, requires a global configuration file.