diff --git a/CHANGELOG.md b/CHANGELOG.md index 699f728..6a07337 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ All notable changes to this project will be documented in this file. ### Fixed - Fixed SQL when conferences start and end time are not explicitly clear - Web design fixes +- Fixed install script --- diff --git a/doc/config.nginx b/doc/config.nginx index f1f8002..767b2d0 100644 --- a/doc/config.nginx +++ b/doc/config.nginx @@ -9,6 +9,13 @@ server { 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 { deny all; } diff --git a/doc/install.sh b/doc/install.sh index e5a3c6b..dbbbfba 100755 --- a/doc/install.sh +++ b/doc/install.sh @@ -6,7 +6,7 @@ if [ "$EUID" -ne 0 ] && [ -z "$SUDO_USER" ]; then exit 1 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 function install() { @@ -20,23 +20,24 @@ function install() { WEB_DIR=${WEB_DIR:-jilo-web} INSTALL_DIR="/opt/jilo-web/public_html" + APP_DIR="/opt/jilo-web/app" DOC_DIR="/opt/jilo-web/doc" ETC_DIR="/opt/jilo-web/etc" mkdir -p $INSTALL_DIR - cp -r ./public_html/* $INSTALL_DIR + cp -r ../public_html/* $INSTALL_DIR mkdir -p $DOC_DIR - cp CHANGELOG.md $DOC_DIR - cp LICENSE $DOC_DIR - cp README.md $DOC_DIR - cp TODO.md $DOC_DIR - cp config.apache $DOC_DIR - cp config.nginx $DOC_DIR + cp ../CHANGELOG.md $DOC_DIR + cp ../LICENSE $DOC_DIR + cp ../README.md $DOC_DIR + cp ../TODO.md $DOC_DIR + cp ../license-bootstrap $DOC_DIR + cp ../license-jquery $DOC_DIR + cp -r ../doc/ $DOC_DIR mkdir -p $ETC_DIR - cp jilo-web.conf.php $ETC_DIR - cp jilo-web.schema $ETC_DIR + cp ../app/config/jilo-web.conf.php $ETC_DIR #FIXME #mkdir -p "jilo-web-$VERSION/usr/share/man/man8"