Linux_frogg-profile.d/config/config_cmd.sh

33 lines
787 B
Bash

#!/bin/bash
# shellcheck disable=SC2034
#region JSON
CMD_LIST_CONFIG_JSON=$(cat <<EOF
[
{
"section": "APACHE",
"items": [
{"label": "Restart apache", "cmd": "apache2ctl restart", "bin": "apache2ctl"},
{"label": "Status", "cmd": "service apache2 status", "bin": "apache2"}
]
},
{
"section": "SYSTEM",
"items": [
{"label": "Edit main cron", "cmd": "crontab -e", "bin": "crontab"},
{"label": "Restart service", "cmd": "/etc/init.d/\${name} restart"},
{"label": "Display journal", "cmd": "journalctl -xe", "bin": "journalctl"}
]
},
{
"section": "TOOLS",
"items": [
{"label": "Disk space", "cmd": "ncdu", "bin": "ncdu"},
{"label": "Network stats", "cmd": "htop", "bin": "htop"}
]
}
]
EOF
)
#endregion