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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a script that fixes permissions and autostart and stuff on existing installations #87

Closed
8 tasks
AlCalzone opened this issue Jan 3, 2019 · 3 comments
Assignees

Comments

@AlCalzone
Copy link
Collaborator

AlCalzone commented Jan 3, 2019

As discussed with @Apollon77 we should create a script that fixes existing installations to a certain degree or brings them up to par with the installations our new installer creates. Let's call it fixmyshit.sh 馃槅

It should do the following:

  • fix permission errors in /opt/iobroker
  • set the permissions like the installer does (with default ACL)
  • create a user iobroker
  • setup autostart with systemd and run iobroker under the iobroker user
  • add permissions for nodejs to access bluetooth, gpio and other ports so we don't need to run adapters with root permissions
  • handle migration from init.d to systemd
  • Install sudo if it is not installed
  • Add user iobroker to the sudoers

Did I forget something?

@AlCalzone AlCalzone self-assigned this Jan 3, 2019
@Apollon77
Copy link
Contributor

We should also have this as a "shell script loaded from github" script so that we have better control over it.

Maybe: handle migration from init.d script to systemd somehow?

@Apollon77 Apollon77 changed the title Create a script that fixes permissions and autostart and stuff on existing installations [Linux] Create a script that fixes permissions and autostart and stuff on existing installations Jan 3, 2019
@AlCalzone
Copy link
Collaborator Author

Should be just like the linux installer, so curl | bash from github.

@Apollon77
Copy link
Contributor

correct

@Apollon77 Apollon77 changed the title [Linux] Create a script that fixes permissions and autostart and stuff on existing installations Create a script that fixes permissions and autostart and stuff on existing installations Jan 4, 2019
@Apollon77 Apollon77 added the Linux label Jan 4, 2019
ticaki pushed a commit to ticaki/ioBroker that referenced this issue Oct 25, 2023
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