recipe https://www.softaculous.com/board/index.php?tid=14843 <![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p48392 m3gatr0n
   
a recipe is a shell script which is running under the root user the same way as if it has been started locally on a console.
]]>
Mon, 13 Jan 2020 12:58:36 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p48392
<![CDATA[recipe]]> https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p48390 Thank you very much for sharing]]> Mon, 13 Jan 2020 11:28:53 GMT https://www.softaculous.com/board/index.php?tid=14843&tpg=2#p48390 <![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