This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

add install script

  • Loading branch information...
1 parent cd054ba commit 9e22a5a8e9ba254aa914cd644178608de57edc27 @scvalex committed Feb 24, 2012
Showing with 18 additions and 1 deletion.
  1. +5 −1 deploy.sh
  2. +13 −0 install.sh
View
@@ -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"
View
@@ -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.