lancache-autofill/install.sh

24 lines
868 B
Bash
Raw Permalink Normal View History

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
2021-08-30 17:28:55 +00:00
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"
2017-08-27 21:16:20 +00:00
cd $SCRIPT_DIR && composer install
2017-08-17 00:00:45 +00:00
printf "${GREEN}Creating database file${BLACK}\n"
cd $SCRIPT_DIR && touch "database.sqlite"
2017-12-09 02:49:42 +00:00
printf "${GREEN}Creating your environment file${BLACK}\n"
2017-08-27 21:16:20 +00:00
cd $SCRIPT_DIR && cp ".env.example" ".env"
cd $SCRIPT_DIR && ./lancache-autofill app:initialise-database --yes
cd $SCRIPT_DIR && ./lancache-autofill steam:update-app-list
cd $SCRIPT_DIR && ./lancache-autofill steam:initialise --yes