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
|
# Updating system
|
||||||
|
echo "=> Updating system"
|
||||||
pacman -Syu --noconfirm
|
pacman -Syu --noconfirm
|
||||||
|
|
||||||
|
echo "=> Installing python"
|
||||||
# Install python
|
# Install python
|
||||||
pacman -S python2 python2-pip python2-virtualenv --noconfirm
|
pacman -S python2 python2-pip python2-virtualenv --noconfirm
|
||||||
|
|
||||||
|
echo "=> Installing Postgresql"
|
||||||
# Install postgresql
|
# Install postgresql
|
||||||
pacman -S postgresql --noconfirm
|
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
|
# Install nginx
|
||||||
pacman -S nginx --noconfirm
|
pacman -S nginx --noconfirm
|
||||||
|
|
||||||
|
echo "=> Installing git"
|
||||||
# Install git
|
# Install git
|
||||||
pacman -S git --noconfirm
|
pacman -S git --noconfirm
|
||||||
|
|
||||||
|
echo "=> Installing nodejs and dependencies"
|
||||||
# Install node & dependencies
|
# Install node & dependencies
|
||||||
pacman -S nodejs --noconfirm
|
pacman -S nodejs --noconfirm
|
||||||
npm install -g coffee-script
|
npm install -g coffee-script
|
||||||
npm install -g uglify-js
|
npm install -g uglify-js
|
||||||
npm install -g less
|
npm install -g less
|
||||||
|
|
||||||
|
echo "=> Creating user app and its home folder"
|
||||||
# Create site user
|
# Create site user
|
||||||
useradd app
|
useradd app
|
||||||
mkdir /home/app
|
mkdir /home/app
|
||||||
chown app:app /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