-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·25 lines (20 loc) · 833 Bytes
/
setup.sh
File metadata and controls
executable file
·25 lines (20 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# @author: Peter B.
# @description:
# Install and handle pre-requisites and installed packages for CInbox to
# setup and function correctly.
# Required packages:
# =======================
# coreutils is needed for `cut` command. Should be present out-of-the-box,
# mostly. ;) Thx GNU!
PACKAGES="git php-cli composer coreutils"
sudo apt install $PACKAGES
# These programs need to be run to prepare composer autoload and dependency handling:
# This is /NOT/ run as root, but as the user you'll be running the CInbox with daily.
composer install
# ------------------ This may be OBSOLETE?
# Pull required dependency for parsing cron-like syntax:
# Disabled here, because it should rather be pulled by composer's config file for this project.
#
# See: `composer.json`
#composer require dragonmantank/cron-expression