mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix install script
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user