2023-02-24 09:09:49 +01:00

10 lines
180 B
Bash
Executable File

#!/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