What the installer does not change

What the install script does not change on your server.

The install script must not break other apps on the server. This page lists its rules.

Packages

  • The script installs only missing packages.
  • It does not upgrade installed packages. It never upgrades the system.
  • On Arch, it never runs pacman -Sy. A sync without an upgrade breaks Arch (a partial upgrade). If the package lists are old, pacman cannot find a package. Then the script stops and tells you to run pacman -Syu.
  • On Fedora and RHEL, it does not use dnf --allowerasing. dnf must not remove other packages to make room.
  • It does not remove packages. If Docker CE conflicts with Podman, Buildah or runc on RHEL, the script stops. Remove them yourself, or use --native.
  • If docker is Podman (the podman-docker package), the script stops. Zerodot needs Docker Engine.
  • Ubuntu needrestart only lists services. It does not restart them during the install.

Services

  • The script does not start a stopped Postgres, Valkey, Redis or Docker. Somebody can stop a service on purpose. A start of Docker also starts all other containers.
  • It starts only the services that it installed.

Firewall

  • The script never turns a firewall on or off.
  • It only adds rules, to ufw or to firewalld.
  • With Caddy or nginx, it opens ports 80 and 443. It is an item in the Extras checklist. --no-firewall turns it off.
  • With Postgres or Valkey on the server (Docker mode), it lets the Docker network of the install reach the database port.
  • With firewalld, it does not run firewall-cmd --reload. On some Docker versions, a reload removes the rules of Docker.

Swap

  • The script adds 3 GB of swap in /swapfile only when RAM is less than 4 GB and there is no swap. It is an item in the Extras checklist. --no-swap turns it off.
  • If /swapfile exists, the script does not touch it.
  • On btrfs, it makes the swap file with btrfs filesystem mkswapfile.
  • In a container VPS (LXC, OpenVZ), it does not add swap.

Files

  • Before the script edits a file, it makes a copy. The copy has the time in its name, for example pg_hba.conf.bak-zerodot-20260101120000. An older copy is never overwritten.
  • It does not add to a Caddyfile that fails caddy validate.
  • It does not add to an nginx configuration that fails nginx -t.
  • If Caddy or nginx rejects the new site, the script puts back the old file. The other sites keep working.
  • It does not change a site that exists for your domain, in Caddy or in nginx. For nginx, it prints the settings that the site needs.
  • It keeps the values in .env. It adds only missing keys.
  • git pull --ff-only keeps local changes. If the pull cannot fast-forward, the script stops and changes nothing.

Updates

  • An update without .env stops. A new .env would have new keys. The saved credentials could not be opened with them.
  • An update does not move data between a container and the server. After you move the data by hand, the script stops the old container. It keeps the volume. To move the database, see Back up and move.
  • A Docker volume from an old install with the same name holds a database with another password. The script stops and tells you what to do.

One run at a time

The script holds the lock /run/zerodot-install.lock. A second run stops with the message "Another run of install.sh is active".

Log and stop

  • The script writes each change to /var/log/zerodot-install.log, with the time.
  • If the script stops, it prints the list of changes that it made.
  • Run it again to continue. It skips the steps that are done.

Shared services

Some changes touch services that other apps can share. For each of these changes, the script asks first:

Change When
Postgres listen_addresses, with a restart of Postgres Docker mode with --postgres host
One line in pg_hba.conf Docker mode with --postgres host
Valkey or Redis bind Docker mode with --valkey host
Valkey or Redis protected-mode yes to no Docker mode with --valkey host, Valkey has no password
Valkey or Redis maxmemory-policy noeviction Valkey on the server evicts keys and has a maxmemory
SELinux boolean httpd_can_network_connect Fedora, RHEL with nginx (or a confined Caddy)
include /etc/nginx/conf.d/*.conf; in nginx.conf Arch with nginx
The Caddy COPR repository @caddy/caddy RHEL, Rocky, Alma with Caddy

If you say no, the script stops. It prints the changes, so that you can do them by hand.

With --yes, the script cannot ask. It stops before each of these changes. To let it make them, add --allow-host-changes:

sudo bash install.sh zerodot.example.com --postgres host --valkey host --yes --allow-host-changes

For the details and for the steps to undo each change, see Postgres and Valkey on the server.

Change this page on GitHub