Skip to content
This repository has been archived by the owner on Nov 12, 2017. It is now read-only.

Commit

Permalink
add install script
Browse files Browse the repository at this point in the history
  • Loading branch information
scvalex committed Feb 24, 2012
1 parent cd054ba commit 9e22a5a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deploy.sh
Expand Up @@ -12,8 +12,12 @@ echo "Deploying to ${HOST}"
echo " * Copying files"
rsync -avz rel/fix_id/ "${HOST}:/src/sites/fix_id/"
scp fix_id.init "${HOST}:/src/sites/fix_id/"
scp install.sh "${HOST}:/src/sites/fix_id/"

echo " * Running install script"
ssh "${HOST}" 'sudo /src/sites/fix_id/install.sh'

echo " * Restarting application"
ssh "${HOST}" 'sudo /src/sites/fix_id/fix_id.init restart'

echo " * Done"
echo "Done"
13 changes: 13 additions & 0 deletions install.sh
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

INSTALL='install -o scvalex -g staff'

echo "Installing Fix-Id..."

echo " * Creating directories"
${INSTALL} -d /var/lib/fix_id/
${INSTALL} -d /var/log/fix_id/

echo "Done"

0 comments on commit 9e22a5a

Please sign in to comment.