Softaculous


Topic : Recipes


Posted By: enginama on October 12, 2019, 2:55 pm
So I am now trying to add some recipes and am struggling on 2 counts.
1. Trying to create recipe for ubuntu 16 iso to do apt-upgrade silently(non-interactive) on vps build. I am using:
Quote
DEBIAN_FRONTEND=noninteractive apt-get -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" upgrade
(need all the force commands cos of grub-pc)
This code runs fine when entering manually but recipe doesn't seem to run on vps build.

2. In user manage panel I would expect to see the recipes icon so this same recipe could be run manually by user, but not seeing it. I have checked that the disable recipes in configuration is NOT enabled.

Posted By: wolke on October 14, 2019, 7:12 am | Post: 1
recipes are written in bash.just enter

Code
apt-get  update -y

in your recipe and you are done.


Edited by wolke : October 14, 2019, 12:27 pm

Posted By: enginama on October 14, 2019, 12:18 pm | Post: 2
I don't need to update, I need to upgrade. The code I have is to upgrade(it works if I enter it manually), the purpose is to force grub-pc to default. Without 'confdef' and 'confold' apt-upgrade -y doesn't work.

Posted By: wolke on October 14, 2019, 12:26 pm | Post: 3
I have never had to change this.Doing
Code
apt-get update -y
followed by
Code
apt-get upgrade -y
always did the job.
You just may need to add further opton to the upgrade command (for being able to silently upgrade packages that have changes in their config file and so on.)


Edited by wolke : October 14, 2019, 12:28 pm

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.