9 lines
169 B
Bash
Executable File
9 lines
169 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $(id -u) -eq 0 ] || [ $(id -u) -eq 33 ];then
|
|
OPT="$@"
|
|
su -g www-data -s /bin/sh -c "/var/www/nextcloud/occ $OPT"
|
|
else
|
|
echo "Please run as root"
|
|
fi
|