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

Installation overwrites rc.local #120

Closed
jadero opened this issue Oct 15, 2017 · 6 comments
Closed

Installation overwrites rc.local #120

jadero opened this issue Oct 15, 2017 · 6 comments

Comments

@jadero
Copy link

jadero commented Oct 15, 2017

I did an install today and realized later that my TVheadend Kodi client couldn't connect anymore to the server. A quick check showed that my custom made entries to rc.local were gone and an iptables entry was there instead which hasn't been there before I installed raspap. I couldn't find any backup file so this took me a while to get everything running again. :^(

@jadero
Copy link
Author

jadero commented Oct 15, 2017

Btw. I followed this tutorial for installation: https://howtoraspberrypi.com/create-a-wi-fi-hotspot-in-less-than-10-minutes-with-pi-raspberry/.

@SirLagz
Copy link
Collaborator

SirLagz commented Oct 18, 2017

There should be backups stored in /etc/raspap/backups. Did you check there?

@jadero
Copy link
Author

jadero commented Oct 18, 2017

After some testing I decided to remove raspap and all dependencies incl. folders in /etc. When I discovered that there was something wrong with my rc.local the raspap folder in /etc was already gone so I cannot answer your question. I suggest that you put the backup file for rc.local right into /etc (append a suffix to it). But the question remains why there where lines removed in rc.local in the first place?

@SirLagz
Copy link
Collaborator

SirLagz commented Oct 18, 2017

The rc.local file is updated to add in the rules for the RaspAP web GUI to act as a router.
Uninstalling RaspAP with the uninstall script would have restored the rc.local file that you had before.

@jadero
Copy link
Author

jadero commented Oct 18, 2017

Ok thats fine concerning the uninstallation. I didn't know that there is a script available though. But I would still consider it as a bug that custom added lines to the rc.local script are removed during installation (or that this file is replaced, whatever).

@SirLagz
Copy link
Collaborator

SirLagz commented Oct 18, 2017

Yep, I agree. It is an issue we need to address.

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

No branches or pull requests

2 participants