forked from nixsolutions/zfcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
41 lines (32 loc) · 1020 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
#############################################################################
# Installation
#
# Small installation script
#
#############################################################################
# Server data
echo "Permissions for ./data/"
chmod a+w ./data/cache/ && echo " ./cache/"
chmod a+w ./data/logs/ && echo " ./logs/"
chmod a+w ./data/languages/ && echo " ./languages/"
chmod a+w ./data/session/ && echo " ./session/"
chmod a+w ./data/uploads/ && echo " ./uploads/"
# Public data
echo "Permissions for ./public/"
chmod a+w ./public/captcha/ && echo " ./captcha/"
chmod a+w ./public/uploads/ && echo " ./uploads/"
# Copy .htaccess file
echo "Copy .htaccess file"
cp ./public/.htaccess.sample ./public/.htaccess
#Loading composer and dependencies
echo "Downloading composer"
curl -sS https://getcomposer.org/installer | php
echo "Installing dependencies"
php composer.phar install
# Binary
chmod a+x ./bin/zfc.sh
# Run migration
#cd ./bin/
#./zfc.sh up migration
echo "done"