Updated install script with improved output, reminders and more complete postgresql configuration
This commit is contained in:
parent
212ea792b3
commit
dce7273615
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue