|Real Software Forums
|Command Line Installers
|Page 1 of 1|
|Author:||Jason_Adams [ Fri Jan 25, 2013 9:19 am ]|
|Post subject:||Command Line Installers|
First, please forgive my ignorance of all things Linux. My experiences with the OS is less than a year old.
I'm using a Debian Squeeze (LAPP turnkey) as a PostgreSQL server. On the same server I have Web App running that reads from the database, so my client's can review data and make reports on their local network. What I'm trying to understand is how I could bundle the WE builds to deliver updates to them as painlessly as possible. There's no UI, so the client will have to do something from the command-line. What I'd like to avoid is making them SFTP in and swap files, change permissions, and run the app from the shell.
Is it possible to create a Linux build that can be called from the shell that downloads, removes, and installs the new files? Should I write this myself as a Console App?
|Author:||p0wn3d [ Fri Jan 25, 2013 9:43 am ]|
|Post subject:||Re: Command Line Installers|
You could have a timer or something in your console application to check a URL for any updates that you publish and then execute a shell script - Off the top of my head
wget --no-check-certificate http://downloads.yoursite.com/MyAppsetup.tar
if [ ! -f "MyAppsetup.tar" ]
rmdir /usr/lib/myAppfolder 2>/dev/null
echo "Tar file failed to download. Please call us."
tar -xvf MyAppsetup.tar
chmod 755 YourApp
|Page 1 of 1||All times are UTC - 5 hours|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group