Fixes install script

main
Yasen Pramatarov 2024-08-16 09:35:21 +03:00
parent b02d72b29d
commit 8ca9643fc2
3 changed files with 19 additions and 10 deletions

View File

@ -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
---

View File

@ -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;
}

View File

@ -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"