Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
Adding a shell script that checks if needed packages are installed on…
Browse files Browse the repository at this point in the history
… server before app runs
  • Loading branch information
imykie committed Jun 4, 2020
1 parent 6b7e478 commit 2491b1a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

if ! [ -x "$(command -v php)" ]; then
echo 'Error: PHP is not installed.' >&2
exit 1
fi

if ! [ -x "$(command -v node)" ]; then
echo 'Error: Node is not installed.' >&2
exit 1
fi

if ! [ -x "$(command -v python | command -v python3)" ]; then
echo 'Error: Python is not installed.' >&2
exit 1
fi

php ./index.php

0 comments on commit 2491b1a

Please sign in to comment.