This commit is contained in:
meaz 2019-11-05 13:35:57 +00:00 committed by Gitea
parent d9ed5d05cf
commit c8c6546813
2 changed files with 19 additions and 8 deletions

View File

@ -3,32 +3,41 @@
# Disroot Website Development Environment using Vagrant # Disroot Website Development Environment using Vagrant
## requirements ## requirements
1. vagrant 2.2.1 1. vagrant 2.2.6
for install on Debian run commands: for install on Debian run commands:
``` ```
wget https://releases.hashicorp.com/vagrant/2.2.1/vagrant_2.2.1_x86_64.deb wget https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.deb
``` ```
``` ```
sudo dpkg -i vagrant_2.2.1_x86_64.deb sudo dpkg -i vagrant_2.2.6_x86_64.deb
``` ```
``` ```
sudo apt install -f sudo apt install -f
``` ```
2. virtuabox 2. virtuabox
for install on Debian run command: for install on Debian Jessie run command:
``` ```
sudo apt install virtualbox-6.0 sudo apt install virtualbox-6.0
``` ```
for install on Debian Buster run command:
```
sudo echo 'deb http://download.virtualbox.org/virtualbox/debian stretch contrib' > /etc/apt/sources.list.d/virtualbox.list
```
```
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
```
```
sudo apt-get update ; sudo apt-get install virtualbox-6.0
```
3. vagrant plugins vagrant-vbguest: 3. vagrant plugins vagrant-vbguest:
for install on Debian run commands: for install on Debian run commands:
``` ```
vagrant plugin install vagrant-vbguest vagrant plugin install vagrant-vbguest
``` ```
```
vagrant vbguest
```
4. git 4. git
``` ```

View File

@ -52,7 +52,9 @@ languages:
- en - en
- es - es
- fr - fr
- it" >> "${WEB_ROOT}""${WEB_NAME}"/user/config/system.yaml - it
- de
- ru" >> "${WEB_ROOT}""${WEB_NAME}"/user/config/system.yaml
sudo -u "${WWW_USER}" sed -i '4d' "${WEB_ROOT}""${WEB_NAME}"/user/config/system.yaml sudo -u "${WWW_USER}" sed -i '4d' "${WEB_ROOT}""${WEB_NAME}"/user/config/system.yaml
sudo -u "${WWW_USER}" ex -s -c "4i| alias: '/home'" -c x "${WEB_ROOT}""${WEB_NAME}"/user/config/system.yaml sudo -u "${WWW_USER}" ex -s -c "4i| alias: '/home'" -c x "${WEB_ROOT}""${WEB_NAME}"/user/config/system.yaml
sudo -u "${WWW_USER}" -i 's/false/true/g' "${WEB_ROOT}""${WEB_NAME}"/user/plugins/language-selector/language-selector.yaml sudo -u "${WWW_USER}" -i 's/false/true/g' "${WEB_ROOT}""${WEB_NAME}"/user/plugins/language-selector/language-selector.yaml