Files
VPS-scripts_Web-V2/Docs/docs/Dev-Adding-Webserver.md

30 lines
1.1 KiB
Markdown

# List of possible Files and expected Structure
* CoreModules/`<webserverName>`/
* conf.sh
* preconf.sh
* generic.pkg.list
* apt.pkg.list
* dnf.pkg.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 |
| generic.pkg.list | packagelist for this webserver and php for all distro's |
| apt.pkg.list | packagelist for this webserver and php for distro's that use apt |
| dnf.pkg.list | packagelist for this webserver and php for distro's that use dnf/yum |
| 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 <webserver>CMS and <webserver>Options are created