Escaping \ when using runuser

Hello

I am installing Nextcloud on Opensuse and I am running into some issues using occ with runuser. The “sudo -u wwwrun” will not work as you will be prompted for a password. After doing some googling is seem like this is a security feature on Opensuse and the recommendation is to use runuser.

Below it what I have been trying:

sudo runuser -l wwwrun -c ‘php /srv/www/nextcloud/occ config:system:set memcache.local --value=\OC\Memcache\APCu’

This issue I am having is that the ‘\’ in ‘\OC\Memcache\APCu’ are being ignored and the result is:

‘memcache.local’ => ‘OCMemcacheAPCu’

I am guessing the ‘\’ is a special character that needs to be escaped. I thought it would be

sudo runuser -l wwwrun -c ‘php /srv/www/nextcloud/occ config:system:set memcache.local --value=\\OC\\Memcache\\APCu’

however this just led to:

‘memcache.local’ => ‘\\OC\\Memcache\\APCu’

Any suggestions?