Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
11raob opened this issue Jul 24, 2024 · 0 comments
Open

Comments

@11raob
Copy link

11raob commented Jul 24, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant