Trying to make it simple to isolate the writing of the pkg.json file but I get a not found error. I copied the echo command from your git page.
Code:
./echo.sh
{"pkgs":["nano","curl","sudo","mariadb101-server","redis","php72-ctype","php72-dom","php72-gd","php72-iconv","php72-json","php72-mbstring","php72-posix","php72-simplexml","php72-xmlreader","php72-xmlwriter","php72-zip","php72-zlib","php72-pdo_mysql","php72-hash","php72-xml","php72-session","php72-mysqli","php72-wddx","php72-xsl","php72-filter","php72-curl","php72-fileinfo","php72-bz2","php72-intl","php72-openssl","php72-ldap","php72-ftp","php72-imap","php72-exif","php72-gmp","php72-memcache","php72-opcache","php72-pcntl","php72","bash","p5-Locale-gettext","help2man","texinfo","m4","autoconf","socat","git"]}
./echo.sh: {"pkgs":["nginx","mariadb101-server","redis","php70-bz2","php70-ctype","php70-curl","php70-dom","php70-exif","php70-fileinfo","php70-filter","php70-gd","php70-hash","php70-iconv","php70-intl","php70-json","php70-mbstring","php70-mcrypt"]}: not found
Please supply a valid JSON file with the format:
{
"pkgs": [
"foo",
"bar"
]
}
Code:
#!/bin/sh
echo '{"pkgs":["nano","curl","sudo","mariadb101-server","redis","php72-ctype","php72-dom","php72-gd","php72-iconv","php72-json","php72-mbstring","php72-posix","php72-simplexml","php72-xmlreader","php72-xmlwriter","php72-zip","php72-zlib","php$
> /tmp/pkg.json
iocage create -n "nextcloudS" -p /tmp/pkg.json -r 11.1-RELEASE ip4_addr="vnet0|192.168.5.92/24" defaultrouter="192.168.5.1" vnet="on" allow_raw_sockets="1" boot="on"