Skip to content

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

Open
@11raob

Description

@11raob

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions