-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
23 lines (19 loc) · 912 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
command -v git >/dev/null 2>&1 || { echo >&2 "Can't find git. Aborting"; exit 1; }
command -v php >/dev/null 2>&1 || { echo >&2 "Can't find php (cli)). Aborting"; exit 1; }
command -v composer >/dev/null 2>&1 || { echo >&2 "Can't find composer. Aborting"; exit 1; }
if [[ "$1" != "https" ]]; then
PLUGIN_PODCAST_URL="[email protected]:cosmicradiotv/podcast-plugin.git"
THEME_URL="[email protected]:cosmicradiotv/u62-theme.git"
else
PLUGIN_PODCAST_URL="https://github.com/cosmicradiotv/podcast-plugin.git"
THEME_URL="https://github.com/cosmicradiotv/u62-theme.git"
fi
composer create-project october/october crtv dev-master --prefer-dist
git clone "$PLUGIN_PODCAST_URL" "crtv/plugins/cosmicradiotv/podcast"
git clone "$THEME_URL" "crtv/themes/u62"
echo ""
echo "Cloned!"
echo ""
echo "Follow the instructions *after the composer step*:"
echo "http://octobercms.com/docs/help/console#console-install"