This commit is contained in:
m0duspwnens
2020-05-21 09:51:31 -04:00
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
{% set docker = { {% set docker = {
'containers': [ 'containers': [
'so-filebeat',
'so-nginx', 'so-nginx',
'so-telegraf', 'so-telegraf',
'so-dockerregistry', 'so-dockerregistry',

View File

@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
{%- from 'common/maps/so-status.map.jinja' import docker with context %} {%- from 'common/maps/so-status.map.jinja' import docker with context %}
{%- set container_list = docker['containers'] %} {%- set container_list = docker['containers'] | sort %}
if ! [ "$(id -u)" = 0 ]; then if ! [ "$(id -u)" = 0 ]; then
echo "This command must be run as root" echo "This command must be run as root"