Files
VPS-scripts_Web-V2/Docs/docs/Dev-Adding-Webserver.md
2020-04-29 11:03:05 +02:00

921 B

List of possible Files and expected Structure

  • CoreModules/<webserverName>/
    • conf.sh
    • preconf.sh
    • apt.list
    • appendCMS-conf.sh
    • config/*

File Explanation

File Name Description
preconf.sh Pre config/apt install commands (ex: repo setup)
conf.sh Configuration for webserver and php
apt.list packagelist for this webserver and php
appendCMS-conf.sh Runs when a domain gets added after inital install by appendCMS.sh

Defining in the menu

Add the following to ModulesMenu.list

For Whiptail

Add under the previous “webservers+”

<WebserverName>Options=("<WebserverName>:" "Will install <WebserverName> Webserver." OFF)

For legacy

Add to the “webservers” variable after last entry Make sure the the entry is quoted, otherwise the installer will break
Make sure that CMS and Options are created