I get this error when trying to set up Peertube:
could not change directory to « /root »: Permission denied
Full Error:
root@peertube:~# sudo -u postgres psql -c « CREATE EXTENSION unaccent; » peertube_prod
could not change directory to « /root »: Permission denied
CREATE EXTENSION
root@peertube:~#