Fixes install script
parent
b02d72b29d
commit
8ca9643fc2
|
@ -31,6 +31,7 @@ All notable changes to this project will be documented in this file.
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed SQL when conferences start and end time are not explicitly clear
|
- Fixed SQL when conferences start and end time are not explicitly clear
|
||||||
- Web design fixes
|
- Web design fixes
|
||||||
|
- Fixed install script
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,13 @@ server {
|
||||||
try_files \$uri \$uri/ /index.php?\$args;
|
try_files \$uri \$uri/ /index.php?\$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
include snippets/fastcgi-php.conf;
|
||||||
|
fastcgi_pass unix:/run/php/php-fpm.sock;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ /\.ht {
|
location ~ /\.ht {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ if [ "$EUID" -ne 0 ] && [ -z "$SUDO_USER" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VERSION=`grep version jilo-web.conf.php | cut -d "'" -f 4`
|
VERSION=`grep version ../app/config/jilo-web.conf.php | cut -d "'" -f 4`
|
||||||
|
|
||||||
# main install function
|
# main install function
|
||||||
function install() {
|
function install() {
|
||||||
|
@ -20,23 +20,24 @@ function install() {
|
||||||
WEB_DIR=${WEB_DIR:-jilo-web}
|
WEB_DIR=${WEB_DIR:-jilo-web}
|
||||||
|
|
||||||
INSTALL_DIR="/opt/jilo-web/public_html"
|
INSTALL_DIR="/opt/jilo-web/public_html"
|
||||||
|
APP_DIR="/opt/jilo-web/app"
|
||||||
DOC_DIR="/opt/jilo-web/doc"
|
DOC_DIR="/opt/jilo-web/doc"
|
||||||
ETC_DIR="/opt/jilo-web/etc"
|
ETC_DIR="/opt/jilo-web/etc"
|
||||||
|
|
||||||
mkdir -p $INSTALL_DIR
|
mkdir -p $INSTALL_DIR
|
||||||
cp -r ./public_html/* $INSTALL_DIR
|
cp -r ../public_html/* $INSTALL_DIR
|
||||||
|
|
||||||
mkdir -p $DOC_DIR
|
mkdir -p $DOC_DIR
|
||||||
cp CHANGELOG.md $DOC_DIR
|
cp ../CHANGELOG.md $DOC_DIR
|
||||||
cp LICENSE $DOC_DIR
|
cp ../LICENSE $DOC_DIR
|
||||||
cp README.md $DOC_DIR
|
cp ../README.md $DOC_DIR
|
||||||
cp TODO.md $DOC_DIR
|
cp ../TODO.md $DOC_DIR
|
||||||
cp config.apache $DOC_DIR
|
cp ../license-bootstrap $DOC_DIR
|
||||||
cp config.nginx $DOC_DIR
|
cp ../license-jquery $DOC_DIR
|
||||||
|
cp -r ../doc/ $DOC_DIR
|
||||||
|
|
||||||
mkdir -p $ETC_DIR
|
mkdir -p $ETC_DIR
|
||||||
cp jilo-web.conf.php $ETC_DIR
|
cp ../app/config/jilo-web.conf.php $ETC_DIR
|
||||||
cp jilo-web.schema $ETC_DIR
|
|
||||||
|
|
||||||
#FIXME
|
#FIXME
|
||||||
#mkdir -p "jilo-web-$VERSION/usr/share/man/man8"
|
#mkdir -p "jilo-web-$VERSION/usr/share/man/man8"
|
||||||
|
|
Loading…
Reference in New Issue