From dce7273615a1e6f5e62ceb52c51c3cca2020332c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Mart=C3=ADn?= Date: Wed, 22 May 2013 18:17:36 +0200 Subject: [PATCH] Updated install script with improved output, reminders and more complete postgresql configuration --- config/production/install.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/config/production/install.sh b/config/production/install.sh index efcaefd..c1415b7 100644 --- a/config/production/install.sh +++ b/config/production/install.sh @@ -1,27 +1,40 @@ # Updating system +echo "=> Updating system" pacman -Syu --noconfirm +echo "=> Installing python" # Install python pacman -S python2 python2-pip python2-virtualenv --noconfirm +echo "=> Installing Postgresql" # Install postgresql pacman -S postgresql --noconfirm +systemd-tmpfiles --create postgresql.conf +mkdir /var/lib/postgres/data +chown -c -R postgres:postgres /var/lib/postgres +su - postgres -c "initdb -D '/var/lib/postgres/data'" +systemctl start postgresql +systemctl enable postgresql +echo "=> Installing nginx" # Install nginx pacman -S nginx --noconfirm +echo "=> Installing git" # Install git pacman -S git --noconfirm +echo "=> Installing nodejs and dependencies" # Install node & dependencies pacman -S nodejs --noconfirm npm install -g coffee-script npm install -g uglify-js npm install -g less +echo "=> Creating user app and its home folder" # Create site user useradd app mkdir /home/app chown app:app /home/app -echo "Remember to create ssh keypair for the server." +echo "[REMEMBER!] create ssh keypair for the server."