Application upgrade triggered from web application on Ubuntu/Linux
Posted
by Witek
on Server Fault
See other posts from Server Fault
or by Witek
Published on 2010-03-29T11:26:59Z
Indexed on
2010/03/29
11:33 UTC
Read the original article
Hit count: 399
On my ubuntu server I have an application MyApp which runs as a daemon with its own user myapp.
Then I have a web application MyPortal which runs in apace httpd as user www-data. This application serves a web page with a Redeploy MyApp button. When clicking this button I want to start the script redeploymyapp. This script stops the MyApp deamon, upgrades the application and starts the daemon again.
The problem is, that the redeploymyapp script needs to be executed by the user myapp, while MyPortal is running as www-data.
What is te best way to solve this problem?
© Server Fault or respective owner