danb35 / freenas-iocage-nextcloud

Script to create an iocage jail on FreeNAS for the latest Nextcloud 28 release, including Caddy, MariaDB or PostgreSQL, and Let's Encrypt
GNU General Public License v3.0
258 stars 71 forks source link

fault of my own, but how to recover a lost /etc/rc.conf file's contents #222

Open 11raob opened 1 month ago

11raob commented 1 month ago

I got the jail set up on Saturday, 13 July 2024, all well and good. I got the SSL certificate for HTTPS, and well, everything was fine until I wanted easy access to the jail by ssh.

So, I entered the jail---iocage console nextcloud---and proceeded to add enable_sshd="YES" to /etc/rc.conf, but I made a fatal mistake. Oh, I am an idiot. I just slipped by typing only one > instead of two >.

I wrote echo 'sshd_enable="YES"' > /etc/rc.conf instead of echo 'sshd_enable="YES"' >> /etc/rc.conf

Would anyone be so kind to let me know what is in a "vanilla" rc.conf file for this Nextcloud jail or what's in your rc.conf file?

Else, could I run the ./nextcloud-jail.sh script again onto of an existing jail, or would that approach not work to rebuild the hobbled /etc/rc.conf file that I do have now?