Softaculous


Topic : recipe


1

Posted By: tashkas on January 14, 2019, 7:53 pm
how those recipies works, do i have to turn off and start vps? when i do so i dont get any action of it.

Posted By: wolke on January 14, 2019, 8:08 pm | Post: 1
recipes will be executed only while creating the vps (if a recipe is selected to run)  and through the enduser panel.It will not be executed when you rebuild the server.

Posted By: tashkas on January 14, 2019, 9:03 pm | Post: 2
how i can make that one run on vps creation?

Posted By: wolke on January 15, 2019, 6:43 am | Post: 3
Simply select it under the "Advanced options" section when creating a server. There is an option called "recipe".

Posted By: tashkas on February 20, 2019, 5:59 pm | Post: 4
is there such thing to install recipie on vps started?

Posted By: wolke on February 20, 2019, 8:24 pm | Post: 5
nope

Posted By: shawn.horton on March 12, 2019, 5:24 pm | Post: 6
After messing with these for a while I did find an issue that keeps some recipes from running correctly.  If your recipe requires internet access it will fail because the recipe is fired before the network is up and running.  My solution to this is to put a sleep command in my script for 20-30 seconds.  I notified support and they verified that it is a bug.


Posted By: wolke on March 13, 2019, 8:41 am | Post: 7
thanks for sharing this!

Posted By: tashkas on March 16, 2019, 4:14 pm | Post: 8
how to make this line to work in recipie?

bash <(wget -O- -q https://raw.githubusercontent.com/liaralabs/swizzin/master/setup.sh)

Posted By: wolke on March 16, 2019, 7:51 pm | Post: 9
maybe that way:

just a thought.


Edited by wolke : March 16, 2019, 7:51 pm

Posted By: shawn.horton on March 16, 2019, 8:13 pm | Post: 10
Quote From : wolke March 16, 2019, 7:51 pm
maybe that way:

just a thought.


I would add sleep first if you have a problem with the script failing due to no network.

Posted By: tashkas on March 16, 2019, 8:37 pm | Post: 11
nope not installing it either with 20sec, it should pop up in first installation when ssh have been accessed.

Posted By: shawn.horton on March 16, 2019, 9:00 pm | Post: 12
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.

Posted By: tashkas on March 16, 2019, 9:06 pm | Post: 13
sorry no such process runing.

Posted By: shawn.horton on March 16, 2019, 9:16 pm | Post: 14
Create a bash script, and paste the contents of your recipe inside. 
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.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.