× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

apt-get during add-on install

ebariaux1
Follower

apt-get during add-on install

Hello all,

I'm trying to create a plug-in on the ReadyNAS Ultra, running RAIDiator 4.2.20.
In my install.sh, I'm running an apt-get command.

To test the script, I build the plug-in, then manually extract from the .bin and run install.sh
The script works correctly and everything is installed as I expect.

If I install the plug-in through Frontview though, the script gets stuck and the install never finishes.
If I ssh to the box and ps at that time, I can see the apt-get command displayed twice.

More specifically, I can see the following happening:
1. apt-get process appears
2. after a while, it spawns a /usr/lib/apt/methods/http process
3. this later gets replaced with a second apt-get command
4. this eventually turns into a zombie process and then the install just sits there.

Does anyone have an explanation of what might be going on ?

Thanks a lot,
Eric
Message 1 of 4
mdgm-ntgr
NETGEAR Employee Retired

Re: apt-get during add-on install

Perhaps have a look at some add-ons that use apt-get and see how they do it, to look for clues that might explain the problem with yours.
Message 2 of 4
Kofferus
Aspirant

Re: apt-get during add-on install

Same problem
I'm working on plugin that needs php.

... do you have a solution? :oops:

I'd like to know if it's safe to apt-get install during installation?
Message 3 of 4
mdgm-ntgr
NETGEAR Employee Retired

Re: apt-get during add-on install

There's already a PHP add-on. Why not just do a check to make sure PHP is installed and if it isn't abort the install?
Message 4 of 4
Top Contributors
Discussion stats
  • 3 replies
  • 3142 views
  • 0 kudos
  • 3 in conversation
Announcements