This commit is contained in:
9
debian/apache/occ
vendored
Executable file
9
debian/apache/occ
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user