Skip to content

Commit

Permalink
Simplify installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumos committed Aug 30, 2021
1 parent 5d8b9d5 commit 38ba74a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ Automatically fill a [lancache](https://github.com/zeropingheroes/lancache) with
* Dependencies detailed in *Installation* section

# Installation
1. `sudo apt update -y`
2. `sudo apt install -y lib32gcc1 lib32stdc++6 lib32tinfo5 lib32ncurses5 php7.2-cli php7.2-mbstring php7.2-sqlite php7.2-bcmath php7.2-dom composer expect zip unzip`
3. `git clone https://github.com/zeropingheroes/lancache-autofill.git && cd lancache-autofill`
4. `./install.sh`
5. Get a Steam API key from http://steamcommunity.com/dev/apikey and add it to the `.env` file
1. `git clone https://github.com/zeropingheroes/lancache-autofill.git && cd lancache-autofill`
2. `./install.sh`
3. Get a Steam API key from http://steamcommunity.com/dev/apikey and add it to the `.env` file

# Usage

Expand Down
4 changes: 0 additions & 4 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.customize ["modifyvm", :id, "--uartmode1", "disconnected" ]
end

config.vm.provision "apt",
type: "shell",
inline: "apt update && apt install -y lib32gcc1 lib32stdc++6 lib32tinfo5 lib32ncurses5 php7.2-cli php7.2-mbstring php7.2-sqlite php7.2-bcmath composer expect zip unzip"

config.vm.provision "project",
type: "shell",
privileged: false,
Expand Down
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
GREEN='\033[0;32m'
BLACK='\033[0m'

printf "${GREEN}Installing dependencies with Composer${BLACK}\n"
printf "${GREEN}Installing apt package dependencies${BLACK}\n"
sudo apt update -y
sudo apt install -y lib32gcc1 lib32stdc++6 lib32tinfo5 lib32ncurses5 composer expect zip unzip \
php7.2-cli php7.2-mbstring php7.2-sqlite \php7.2-bcmath php7.2-dom

printf "${GREEN}Installing PHP dependencies with Composer${BLACK}\n"
cd $SCRIPT_DIR && composer install

printf "${GREEN}Creating database file${BLACK}\n"
Expand Down

0 comments on commit 38ba74a

Please sign in to comment.