9 lines
179 B
Bash
Executable File
9 lines
179 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
|