mirror of
https://github.com/YunoHost-Apps/prettynoemiecms_ynh.git
synced 2024-09-03 20:06:36 +02:00
[fix] Make noemie cms installable
This commit is contained in:
parent
71fc4ec0c3
commit
093b5e4b01
4 changed files with 8 additions and 6 deletions
|
@ -8,12 +8,12 @@ location __PATH__ {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Example PHP configuration (remove if not used)
|
# Example PHP configuration (remove if not used)
|
||||||
index index.php;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
|
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
|
||||||
#client_max_body_size 50M;
|
#client_max_body_size 50M;
|
||||||
|
|
||||||
try_files $uri $uri/ index.php;
|
try_files $uri $uri/ /index.php;
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
fastcgi_pass unix:/var/run/php5-fpm-__NAME__.sock;
|
fastcgi_pass unix:/var/run/php5-fpm-__NAME__.sock;
|
||||||
|
|
|
@ -8,3 +8,4 @@
|
||||||
; max_input_time = 300
|
; max_input_time = 300
|
||||||
; memory_limit = 256M
|
; memory_limit = 256M
|
||||||
; short_open_tag = On
|
; short_open_tag = On
|
||||||
|
session.save_path = /var/www/__NAMETOCHANGE__/tmp
|
||||||
|
|
|
@ -24,7 +24,7 @@ exec_composer() {
|
||||||
|
|
||||||
COMPOSER_HOME="${workdir}/.composer" \
|
COMPOSER_HOME="${workdir}/.composer" \
|
||||||
php "${workdir}/composer.phar" $@ \
|
php "${workdir}/composer.phar" $@ \
|
||||||
-d "${workdir}" --quiet --no-interaction
|
-d "${workdir}" --no-interaction
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install and initialize Composer in the given directory
|
# Install and initialize Composer in the given directory
|
||||||
|
|
|
@ -86,11 +86,12 @@ ynh_install_app_dependencies "$pkg_dependencies"
|
||||||
ynh_app_setting_set $app final_path $final_path
|
ynh_app_setting_set $app final_path $final_path
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
#ynh_setup_source "$final_path"
|
#ynh_setup_source "$final_path"
|
||||||
git clone "https://framagit.org/framasoft/PrettyNoemieCMS" "$final_path"
|
git clone "https://framagit.org/framasoft/PrettyNoemieCMS" -b update-project "$final_path"
|
||||||
|
|
||||||
|
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
|
||||||
init_composer "$final_path"
|
init_composer "$final_path"
|
||||||
|
|
||||||
exec_composer "$final_path" require paragonie/random_compat
|
#exec_composer "$final_path" require paragonie/random_compat
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -165,7 +166,7 @@ systemctl reload nginx
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R www-data:www-data $final_path
|
chown -R $app:www-data $final_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP LOGROTATE
|
# SETUP LOGROTATE
|
||||||
|
|
Loading…
Reference in a new issue