44 lines
934 B
Bash
44 lines
934 B
Bash
#!/bin/bash
|
|
|
|
# shellcheck disable=SC2034
|
|
|
|
#region JSON
|
|
CONF_LIST_CONFIG_JSON=$(cat <<EOF
|
|
[
|
|
{
|
|
"section": "APACHE",
|
|
"items": [
|
|
{"label": "Websites folder", "cmd": "/var/www/", "bin": "apache2"},
|
|
{"label": "Apache config", "cmd": "/etc/apache2/", "bin": "apache2"}
|
|
]
|
|
},
|
|
{
|
|
"section": "PHP",
|
|
"items": [
|
|
{"label": "CLI config", "cmd": "/etc/php/*/cli/php.ini", "bin": "php"},
|
|
{"label": "Apache config", "cmd": "/etc/php/*/apache2/php.ini", "bin": "php"}
|
|
]
|
|
},
|
|
{
|
|
"section": "MYSQL",
|
|
"items": [
|
|
{"label": "Mysql config", "cmd": "/etc/mysql/my.cnf", "bin": "mysql"}
|
|
]
|
|
},
|
|
{
|
|
"section": "TOOLS",
|
|
"items": [
|
|
{"label": "Zabbix agent", "cmd": "/etc/zabbix/zabbix-agent.conf", "bin": "zabbix-agent"}
|
|
]
|
|
},
|
|
{
|
|
"section": "CUSTOM",
|
|
"items": [
|
|
{"label": "Login message", "cmd": "/etc/profile.d/777-welcome.sh"}
|
|
]
|
|
}
|
|
]
|
|
EOF
|
|
)
|
|
#endregion
|