recipe https://www.softaculous.com/board/index.php?tid=14843 <![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p47745 I would like to know if I can use variables inside recipe like user email address or something.
Also I would like to know at which run-level the recipe will run.]]>
Fri, 01 Nov 2019 21:06:54 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p47745
<![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p46467 ]]> Fri, 05 Jul 2019 16:47:28 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p46467 <![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p45512 The following will work only with ssh login with key, not password.
1.add a "command=/path/to/your/script" at the end of your access key stored in authorized_keys.
2. Add a recipe in virtualizor that writes your desired script to the path above and issue a

Code
chmod +x /path/to/your/script

3. Whenever there is a login with the matched key, the script will be executed.
If you only needs this to run ONCE, you need to delete the script and change the key (remove the command=" sectionl. The script can also delete itself with simple

Code
rm /path/to/your/script

command as last line.
That´s just a suggestion which can be refined further.

]]>
Mon, 01 Apr 2019 10:36:19 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p45512
<![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p45511 Mon, 01 Apr 2019 09:57:29 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p45511 <![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p45497
Code
#!/bin/sh
It is added automatically.]]>
Sun, 31 Mar 2019 11:54:15 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p45497
<![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p45493
Code

#!/bin/sh
sleep 30
apt install htop -y
]]>
Sat, 30 Mar 2019 20:05:22 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p45493
<![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=1#p45355 Sat, 16 Mar 2019 21:25:16 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=1#p45355 <![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=1#p45354 Run the script from the command line and see what it does.

Once it works as expected on the command line then look at updating the recipe.]]>
Sat, 16 Mar 2019 21:16:45 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=1#p45354
<![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=1#p45353 Sat, 16 Mar 2019 21:06:06 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=1#p45353 <![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=1#p45352
Quote From : tashkas March 16, 2019, 8:37 pm
nope not installing it either with 20sec, it should pop up in first installation when ssh have been accessed.


Recipes run as root on startup independent of your ssh login.  The script you are using is interactive and may be waiting for input in the console session itnis running in.  If you look at your running processes you should see setup.sh idled waiting for input.  If you can attach to the console where it is running you should be able to complete the process.

Run your script in an ssh session and you will see the waiting input.  You might be able to do some echo commands as part of the recipe to answer the prompts.]]>
Sat, 16 Mar 2019 21:00:09 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=1#p45352