Daisuke
Contributor
- Joined
- Jun 23, 2011
- Messages
- 1,041
I'm trying to automate a jail creation with a script, I cannot create the file remotely:
In a normal FreeBSD environment, the file will be created. Not in TrueNAS 12, I get the
Code:
root@nas[~]# cat > /mnt/services/iocage/jails/plexmediaserver/root/usr/local/etc/nginx/nginx.conf << 'EOF' worker_processes auto; events { multi_accept on; worker_connections 1024; } http { server { listen 80 default_server; server_name _; access_log off; index index.html; root /usr/local/www/nginx; proxy_buffering off; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; location / { proxy_pass http://localhost:32400; } } include mime.types; } 'EOF' heredoc>
In a normal FreeBSD environment, the file will be created. Not in TrueNAS 12, I get the
heredoc>
prompt. What would be the correct cat
or iocage exec plexmediaserver
command format to create a file with delimiter content?
Last edited: