fix install script

This commit is contained in:
Simon Larsen
2022-11-09 18:17:22 +00:00
parent 50f9569da5
commit aac2a91a22
2 changed files with 6 additions and 4 deletions

View File

@@ -3,7 +3,12 @@
const fs: any = require('fs');
const init: Function = (): void => {
const env: string = fs.readFileSync('./config.env', 'utf8');
let env: string = "";
try {
env = fs.readFileSync('./config.env', 'utf8');
} catch (err) {
// do nothing.
}
const envValToReplace: string | undefined = process.argv[2];
if (!envValToReplace) {

View File

@@ -4,9 +4,6 @@ set -e
bash preinstall.sh
if [[ ! $(which docker) && ! $(docker --version) ]]; then
echo "Setting up Docker"
sudo curl -sSL https://get.docker.com/ | sh