Skip to content

RSKYS/Hestia--init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hestia Init

Usage Overview

You will run Phase One, reboot, then run Phase Two, and reboot again.

  • Phase One -> reboot
  • Phase Two -> reboot

Run Phase One

Run this as root.

bash <(wget -qO- https://raw.githubusercontent.com/RSKYS/Hestia--init/master/phase-one)

Phase One Prompts

  • USER: Existing Hestia admin username.
  • DOMAIN: New primary server domain (lowercase letters, digits, dots, hyphens).
  • WEB_MAIL_ALIAS: Webmail prefix alias (letters, digits, hyphens).
  • PHP_ADMIN: phpMyAdmin alias (letters, digits, hyphens).

Phase One Actions

  • Deletes all existing web domains for the given user.
  • Updates hostname and system aliases in Hestia.
  • Disables system backups.
  • Restarts Hestia service.
  • Prompts for a reboot.

Run Phase Two

Run this as root (after reboot).

bash <(wget -qO- https://raw.githubusercontent.com/RSKYS/Hestia--init/master/phase-two)

Phase Two Prompts

  • USER: Existing Hestia admin username.
  • DOMAIN: Primary server domain.
  • WEB_MAIL_ALIAS: Webmail prefix alias.

Phase Two Actions

  • Adds the primary domain and enables Let’s Encrypt.
  • Detects public IPv4 (or prompts for it).
  • Creates ns1 and ns2 A records.
  • Replaces the Hestia SSL cert with the domain cert.
  • Rewrites Roundcube configuration for SSL/TLS settings.
  • Prompts for a reboot.

Pre-Phase Script

Run this as root.

bash <(wget -qO- https://raw.githubusercontent.com/RSKYS/Hestia--init/master/pre-phase)

The pre-phase script prepares the server before running Phase One and Phase Two. It applies sysctl tuning, updates SSH configuration and port, sets the hostname, removes old kernels, and prepares Hestia installer.

A little bit step after reboot, though:

./hst-install-ubuntu.sh --force

About

As it's name screams; personal use probably.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages