Installer Options
This page describes the command-line options of the Centova Cast installer, install.sh. For the standard
installation procedure, see the Installation section.
To show a summary of the options, type:
./install.sh --help
If you run install.sh with no options, it shows the same summary.
An option that takes a value uses the form --option=VALUE. Put no spaces around the = sign.
Required Options
You must give these options for a new installation.
--hostname=HOSTNAME
Specifies the fully-qualified domain name of the control panel, for examplecast.example.com. By default, the installer gets a Let's Encrypt certificate for this hostname. For more information, see the TLS Certificates section.--email=EMAIL
Specifies the email address of the administrator. Centova Cast sends the administrator notifications to this address, and uses it as the sender address of its email messages. Let's Encrypt also uses this address, unless you give--le-email.
If an option is missing or not valid, the installer shows the option summary, then an explanation and an example for each problem.
Administrator Account
--password=PASSWORD
Specifies the password of theadminaccount. The password must have at least 6 characters. If you do not give this option, the installer generates a password and shows it at the end of the configuration.A password on the command line is visible in the process list and in the shell history. To prevent this, set the
CC_ADMIN_PASSWORDenvironment variable instead. If you give both,--passwordis used.
Installation Directories
--base-path=PATH
Installs Centova Cast in the directoryPATHinstead of/usr/local/centovacast.PATHmust be an absolute path. It cannot be/and cannot contain the character@or a line break. The installer records the installation directory in the file/etc/centovacast.conf.Note that Liquidsoap and ices-cc always install below
/usr/local/centovacast/apps, also when you use this option.--vhosts=PATH
Keeps all of the client data (the files of the accounts) in the directoryPATH. The installer bind-mounts this directory onvar/vhostsinside the installation directory, and adds the mount to/etc/fstab. The conditions are:PATHmust be an absolute path, and cannot be/.PATHcannot be inside the installation directory.- If
PATHexists, it must be empty. - You can use this option only for a new installation.
Network
--bind=ADDR
Makes the control panel and the file server listen on the IP addressADDRonly.ADDRcan be an IPv4 or an IPv6 address. If you do not give this option, Centova Cast listens on all of the IP addresses of the server.--no-webports
Makes the control panel use only ports 2197 (HTTP) and 2199 (HTTPS). Without this option, the control panel also uses ports 80 and 443. Let's Encrypt needs port 80, so you must also give--no-letsencrypt.--ports=PORTS
Makes the control panel use the given HTTP and HTTPS ports instead of ports 80 and 443. Give the two ports asHTTP,HTTPS, for example--ports=8080,8443. The conditions are:- Each port must be a number from 1 to 65535.
- The two ports must be different.
- Ports 2197 and 2199 are not permitted. The control panel always uses them.
- You cannot use this option with
--no-webports. - If the HTTP port is not 80, you must also give
--no-letsencrypt.
--no-firewall
Prevents changes to the firewall. Without this option, the installer adds rules for the Centova Cast ports to the firewall, if it can. For more information, see the Ports and Firewall section.
TLS Certificate
For more information about these options, see the TLS Certificates section.
--le-email=EMAIL
Specifies a different email address for the registration with letsencrypt.org. If you do not give this option, the installer uses the address of--email.--le-staging
Uses the staging servers of letsencrypt.org. A staging certificate is not trusted by web browsers. Use this option for tests only.--no-letsencrypt
Prevents the request for a certificate from letsencrypt.org. Centova Cast generates a self-signed certificate instead. Web browsers show a security warning for a self-signed certificate.
Software Source
--channel=NAME
Specifies the release channel to install. The options are:stable
The release versions of Centova Cast.unstable
The test versions of Centova Cast. These versions can contain errors. Use them only for tests.
If you do not give this option, the installer uses the channel that the download server wrote into
install.sh. Centova Cast records a channel other thanstable. Later package installations withsbin/installthen use the same channel.--deps
Installs the operating system packages that the installer needs, withaptoryum, before it installs Centova Cast. For the list of these packages, see the System Requirements section.--arch=ARCH
Replaces the CPU architecture that the installer detects. The options arei686andx86_64.--dist=DIST
Replaces the Linux distribution type that the installer detects. The options aredebianandredhat.redhatapplies to CentOS Stream, Rocky Linux and AlmaLinux.
Migration from Centova Cast v3
For more information about these options, see the Migrating from Centova Cast v3 section.
--import-v3
Installs Centova Cast v4 beside an existing Centova Cast v3 installation, and then imports the data of Centova Cast v3. You cannot use this option on a server where Centova Cast v4 is already installed.--import-ports=PORTS
Specifies the HTTP and HTTPS ports of the temporary installation during the import, asHTTP,HTTPS. The conditions are the same as for--ports. If you do not give this option, the installer uses the first pair of free ports, starting at 81 and 444. You can use this option only with--import-v3.--minimize-downtime
Keeps the Centova Cast v3 streams on the air during the import. The streams move to Centova Cast v4 when you finalize the migration. You can use this option only with--import-v3.
Other Options
--force
Continues the installation also when Centova Cast files already exist in the installation directory. In this case, the installer stops the Centova Cast services, copies the new files over the existing installation, and upgrades the database. It does not create a new database or a new administrator account.If an earlier installation failed, remove it with the uninstaller before you install again. Use
--forceonly if the uninstaller does not work. The Administration Manual, chapter Advanced, describes the uninstaller.--no-erreports
Disables error reports. Without this option, Centova Cast sends a report to Centova Technologies when a critical error occurs. The report contains basic information about the server and the error. Centova Cast removes passwords, usernames and IP addresses from the report when it can. You can change this setting later with theerror-reportingkey incastd.conf.--no-color
Shows the installer output without colors.--no-start
Prevents the installer from starting Centova Cast at the end of the installation.--help
Shows the summary of the options, then stops. The short forms-hand-?do the same.
Examples
A standard installation:
./install.sh --hostname=cast.example.com --email=admin@example.com
An installation on a server where another web server uses ports 80 and 443:
./install.sh --hostname=cast.example.com --email=admin@example.com --no-webports --no-letsencrypt
The control panel is then available at https://cast.example.com:2199/, with a self-signed certificate.
An installation that keeps the client data on a separate disk, mounted at /data, and installs the operating system
packages first:
./install.sh --hostname=cast.example.com --email=admin@example.com --deps --vhosts=/data/centovacast