diff --git a/debian/usr/sbin/occ b/debian/usr/sbin/occ new file mode 100755 index 0000000..4f641c7 --- /dev/null +++ b/debian/usr/sbin/occ @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ $(id -u) -eq 0 ] || [ $(id -u) -eq 33 ];then + OPT="$@" + su www-data -s /bin/sh -c "/usr/bin/php /var/www/nextcloud/occ $OPT" +else + echo "Please run as root" +fi