#!/bin/bash
echo "=== EXISTING GROUPS ==="
sudo -u apache php /var/www/owncloud/occ group:list 2>&1
echo
echo "=== PAVON'S GROUPS ==="
sudo -u apache php /var/www/owncloud/occ user:show pavon 2>&1 | grep -iE 'group|enabled'
echo
echo "=== APP ENABLE/DISABLE PER-GROUP SUPPORT ==="
sudo -u apache php /var/www/owncloud/occ help app:enable 2>&1 | head -20
