You can, but only at the CLI:
- Export the pool through the GUI. You obviously don't want to check the box to destroy your data.
- From the shell,
zpool import "Pool 1" Pool1
- this is what renames the pool
- From the shell,
zpool export Pool1
- From the GUI, import the pool
Now, this is going to mean that anything you've configured using the "Pool 1" name is going to have to be changed to "Pool1", including any shares as well as the data mountpoints for this jail. So you might reasonably decide it isn't worth the trouble--but it isn't an optimal arrangement.
From the README:
...so, in your example, that'd be
www.google.com.
Again, from the README:
So the relevant part of the config file would look like this:
Code:
DNS_CERT=1
CERT_EMAIL="(redacted)"
DNS_PLUGIN="cloudflare"
DNS_TOKEN="(redacted)"
Yes, but some more easily than others. The biggest hurdle is the DNS plugin, because that's compiled into Caddy. If you change it, you have to rebuild Caddy--you'd run
xcaddy build --output /usr/local/bin/caddy --with github.com/caddy-dns/cloudflare
(or whatever other plugin you'd want) inside the jail to do that. Changing the hostname would involve changes to both the Nextcloud config file inside the jail (it's at
/usr/local/www/nextcloud/config/config.php) and the Caddyfile (
/usr/local/www/Caddyfile). Changes to the API token and such would just require updating the Caddyfile.
Great, I've changed the name to "Pool1" successfully. I re-ran the script and received errors. I know this is a really long copy/paste but wanted the entire output displayed here, so apologies if it's too much. I've removed the API token for security.
In reviewing, it seems that a reference to the pool path doesn't show the number '1'. Could that be the issue?
-------------------------------------------------------
Script started, output file is nextcloud.log
./nextcloud-jail.sh: Script: not found
./nextcloud-jail.sh: #: not found
./nextcloud-jail.sh: .git: not found
./nextcloud-jail.sh: .gitignore: not found
./nextcloud-jail.sh: includes: not found
./nextcloud-jail.sh: #: not found
./nextcloud-jail.sh: ot found
./nextcloud-jail.sh: 24rot found
./nextcloud-jail.sh: 49mot found
./nextcloud-jail.sh: 49m
ot found
./nextcloud-jail.sh: 34H[: not found
./nextcloud-jail.sh: 33H[: not found
./nextcloud-jail.sh: 79H
ot found cloudflareile name too long
./nextcloud-jail.sh: 24rot found
DNS_TOKEN=(redacted)
DNS_PLUGIN=cloudflarergument list too long
DNS_TOKEN=(redacted)
^G: not found
root@truenas[... 1/downloads/freenas-iocage-nextcloud]# more nextcloud-config
JAIL_IP=192.168.86.200
DEFAULT_GW_IP=192.168.86.1
POOL_PATH=/mnt/Pool: Argument list too long
Save: File name too longot found
./nextcloud-jail.sh: 1H: not found found m
^G: not foundail.sh: 23H
./nextcloud-jail.sh: 21HM-D: not found
./nextcloud-jail.sh: 61HM-B: not found
./nextcloud-jail.sh: 61H^T: not found
./nextcloud-jail.sh: 71H: not found
./nextcloud-jail.sh: 32H[: not found
not foundd-jail.sh: 1H
: not found.168.86.200
./nextcloud-jail.sh: 39: Syntax error: word unexpected (expecting ")")
Script done, output file is nextcloud.log
root@truenas[...l1/downloads/freenas-iocage-nextcloud]# more nextcloud.log
Script started on Fri Mar 1 06:03:18 2024
Command: ./nextcloud-jail.shls
script: ./nextcloud-jail.shls: No such file or directory
Command exit status: 1
Script done on Fri Mar 1 06:03:18 2024
root@truenas[...l1/downloads/freenas-iocage-nextcloud]# cd ..
root@truenas[/mnt/Pool1/downloads]# more nextcloud.log
Script started on Fri Mar 1 05:59:23 2024
Command: ./nextcloud-jail.sh
script: ./nextcloud-jail.sh: No such file or directory
Command exit status: 1
Script done on Fri Mar 1 05:59:23 2024
root@truenas[/mnt/Pool1/downloads]#
root@truenas[/mnt/Pool1/downloads]# ls
freenas-iocage-nextcloud nextcloud.log
root@truenas[/mnt/Pool1/downloads]# rm nextcloud.log
root@truenas[/mnt/Pool1/downloads]# ls
freenas-iocage-nextcloud
root@truenas[/mnt/Pool1/downloads]# cd freenas-iocage-nextcloud
root@truenas[...l1/downloads/freenas-iocage-nextcloud]# ls
.git includes nextcloud-jail.sh
.gitignore LICENSE nextcloud.log
?[?2004l?[1m?[7m#?[27m?[1m?[m nextcloud-config README.md
root@truenas[...l1/downloads/freenas-iocage-nextcloud]# script nextcloud.log ./nextcloud-jail.sh
Script started, output file is nextcloud.log
./nextcloud-jail.sh: Script: not found
./nextcloud-jail.sh: #: not found
./nextcloud-jail.sh: .git: not found
./nextcloud-jail.sh: .gitignore: not found
./nextcloud-jail.sh: includes: not found
./nextcloud-jail.sh: #: not found
./nextcloud-jail.sh: ot found
./nextcloud-jail.sh: 24rot found
./nextcloud-jail.sh: 49mot found
./nextcloud-jail.sh: 49m
ot found
./nextcloud-jail.sh: 34H[: not found
./nextcloud-jail.sh: 33H[: not found
./nextcloud-jail.sh: 79H
ot found cloudflareile name too long
./nextcloud-jail.sh: 24rot found
DNS_TOKEN=(redacted)
DNS_PLUGIN=cloudflarergument list too long
DNS_TOKEN=(redacted)
^G: not found
root@truenas[... 1/downloads/freenas-iocage-nextcloud]# more nextcloud-config
JAIL_IP=192.168.86.200
DEFAULT_GW_IP=192.168.86.1
POOL_PATH=/mnt/Pool: Argument list too long
Save: File name too longot found
./nextcloud-jail.sh: 1H: not found found m
^G: not foundail.sh: 23H
./nextcloud-jail.sh: 21HM-D: not found
./nextcloud-jail.sh: 61HM-B: not found
./nextcloud-jail.sh: 61H^T: not found
./nextcloud-jail.sh: 71H: not found
./nextcloud-jail.sh: 32H[: not found
not foundd-jail.sh: 1H
: not found.168.86.200
./nextcloud-jail.sh: 39: Syntax error: word unexpected (expecting ")")
Script done, output file is nextcloud.log
root@truenas[...l1/downloads/freenas-iocage-nextcloud]#