mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Updated provision script with auto cd and blacklist creation
This commit is contained in:
parent
ef1f448a40
commit
16f7e90938
1 changed files with 13 additions and 0 deletions
|
@ -17,3 +17,16 @@ sudo sh -c 'echo "local all all trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
|
|||
sudo sh -c 'echo "host all all 127.0.0.1/32 trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
|
||||
sudo sh -c 'echo "host all all ::1/128 trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
|
||||
sudo service postgresql restart
|
||||
|
||||
# Create empty file for disposable email accounts
|
||||
DISPOSABLE_EMAIL_PATH=/vagrant/files/disposable_email_blacklist.conf
|
||||
if [ ! -f $DISPOSABLE_EMAIL_PATH ]; then
|
||||
sudo su vagrant -c "touch $DISPOSABLE_EMAIL_PATH"
|
||||
fi
|
||||
|
||||
# Automatically enter the project path on vagrant ssh
|
||||
if grep -qv "cd /vagrant" /home/vagrant/.bashrc
|
||||
then
|
||||
sudo su vagrant -c "echo 'cd /vagrant' >> ~/.bashrc"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue