2017-02-05 22:18:16 +00:00
|
|
|
#!/bin/bash
|
2017-08-17 00:00:45 +00:00
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
GREEN='\033[0;32m'
|
|
|
|
BLACK='\033[0m'
|
2017-02-05 22:18:16 +00:00
|
|
|
|
2017-08-17 00:00:45 +00:00
|
|
|
printf "${GREEN}Installing dependencies with apt${BLACK}\n"
|
|
|
|
apt install -y lib32gcc1 \
|
|
|
|
lib32stdc++6 \
|
|
|
|
lib32tinfo5 \
|
|
|
|
lib32ncurses5 \
|
|
|
|
php7.0-cli \
|
|
|
|
php7.0-mbstring \
|
|
|
|
php7.0-sqlite \
|
|
|
|
composer \
|
|
|
|
expect \
|
2017-09-03 20:10:53 +00:00
|
|
|
zip \
|
|
|
|
unzip \
|
2017-02-05 22:18:16 +00:00
|
|
|
|
2017-08-17 00:00:45 +00:00
|
|
|
printf "${GREEN}Installing dependencies with Composer${BLACK}\n"
|
2017-08-27 21:16:20 +00:00
|
|
|
cd $SCRIPT_DIR && composer install
|
2017-08-12 20:17:57 +00:00
|
|
|
|
2017-08-17 00:00:45 +00:00
|
|
|
printf "${GREEN}Creating database file${BLACK}\n"
|
|
|
|
cd $SCRIPT_DIR && touch "database.sqlite"
|
|
|
|
|
|
|
|
printf "${GREEN}Creating your enviroment file${BLACK}\n"
|
2017-08-27 21:16:20 +00:00
|
|
|
cd $SCRIPT_DIR && cp ".env.example" ".env"
|
2017-08-17 03:07:14 +00:00
|
|
|
|
|
|
|
cd $SCRIPT_DIR && ./lancache-autofill app:initialise-database
|
|
|
|
|
|
|
|
cd $SCRIPT_DIR && ./lancache-autofill steam:update-app-list
|