I made a sh script that is supposed to do a package installation. I specify to play this script in the start command but nothing happens. This script seems to be ignored. Iām on a net 7 linux service app.
Asked
Active
Viewed 947 times
1 Answers
0
As specified in this MS Doc, you need to provide the file path to be run for starting up the container with that page such as
/home/site/deployments/tools/deploy.sh
in the above highlighted startup command section.Also, can provide in the format of
dotnet <app_name>.dll
which will be executed before the application starts and if the application is framework dependent.I found the similar example here, practically provided by @ZebRawnsley that helps to solve your requirement and the command you have entered in Startup command box is similar to Python Shell Script command execution, where that procedure is also mentioned in this SO Thread for running the Shell Script before the application starts using Startup Command.

Pravallika KV
- 2,415
- 2
- 2
- 7
-
I specified the full path of my script but it is still not taken into account: /home/site/wwwroot/run.sh ā dna Dec 14 '22 at 12:26
-
Help me please. I am blocked ā dna Dec 19 '22 at 11:45