Skip to content

Instantly share code, notes, and snippets.

@wmantly
Created May 5, 2021 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wmantly/687efd9f0ebc692069e6ca7cf35c8216 to your computer and use it in GitHub Desktop.
Save wmantly/687efd9f0ebc692069e6ca7cf35c8216 to your computer and use it in GitHub Desktop.
occ wrapper in /usr/sbin/occ
#!/bin/bash
chmod +x /var/www/nextcloud/occ
sudo -u www-data /var/www/nextcloud/occ $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment