1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yellow_ynh.git synced 2024-09-03 20:36:12 +02:00

Merge pull request #3 from ericgaspar/testing

Testing
This commit is contained in:
Éric Gaspar 2020-11-02 11:21:27 +01:00 committed by GitHub
commit ffa489f87c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 38 additions and 45 deletions

View file

@ -9,7 +9,7 @@
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.* If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
## Overview ## Overview
Quick description of this app. Yellow is a CMS designed to make the creation of a website ultra-simple and easy to use. Yellow CMS does not require a database.
**Shipped version:** 0.8.16 **Shipped version:** 0.8.16
@ -53,7 +53,7 @@ How to configure this app: From an admin panel, a plain file with SSH, or any ot
## Links ## Links
* Report a bug: https://github.com/YunoHost-Apps/yellowcms_ynh/issues * Report a bug: https://github.com/YunoHost-Apps/yellowcms_ynh/issues
* App website: https://datenstrom.se/yellow/ * App website: https://datenstrom.se/
* Upstream app repository: https://github.com/datenstrom/yellow/ * Upstream app repository: https://github.com/datenstrom/yellow/
* YunoHost website: https://yunohost.org/ * YunoHost website: https://yunohost.org/

View file

@ -12,28 +12,32 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { location __PATH__/ {
alias __FINALPATH__/ ; alias __FINALPATH__/ ;
index index.html yellow.php; # Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
index yellow.php;
#location __PATH__/ {
# if (!-e $request_filename) {
# rewrite ^/(.*)$ /yellow.php last;
# break;
# }
#}
if (!-e $request_filename) { if (!-e $request_filename) {
rewrite ^(.*)$ /yellow.php last; rewrite ^(.*)$ __PATH__/yellow.php last;
break; break;
} }
try_files $uri $uri/ index.php; try_files $uri $uri/ yellow.php;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index yellow.php; fastcgi_index yellow.php;
include fastcgi_params; include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
} }
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
} }

View file

@ -69,19 +69,19 @@ ynh_script_progression --message="Updating NGINX web server configuration..." --
nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf
# Change the path in the nginx config file # Change the path in the NGINX config file
if [ $change_path -eq 1 ] if [ $change_path -eq 1 ]
then then
# Make a backup of the original nginx config file if modified # Make a backup of the original NGINX config file if modified
ynh_backup_if_checksum_is_different --file="$nginx_conf_path" ynh_backup_if_checksum_is_different --file="$nginx_conf_path"
# Set global variables for nginx helper # Set global variables for NGINX helper
domain="$old_domain" domain="$old_domain"
path_url="$new_path" path_url="$new_path"
# Create a dedicated nginx config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
fi fi
# Change the domain for nginx # Change the domain for NGINX
if [ $change_domain -eq 1 ] if [ $change_domain -eq 1 ]
then then
# Delete file checksum for the old conf file location # Delete file checksum for the old conf file location

View file

@ -88,7 +88,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================
# Set permissions to app files # Set permissions to app files
chown -R www-data:www-data $final_path chown -R $app: $final_path
chmod -R a+rw $final_path chmod -R a+rw $final_path
#================================================= #=================================================

View file

@ -66,21 +66,16 @@ ynh_system_user_create --username=$app
#================================================= #=================================================
# Restore permissions on app files # Restore permissions on app files
chown -R www-data:www-data $final_path chown -R $app: $final_path
chmod -R a+rw $final_path chmod -R a+rw $final_path
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=6
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies"
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description "A short description of the app" --log "/var/log/$app/$app.log"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION

View file

@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path) path_url=$(ynh_app_setting_get --app=$app --key=path)
is_public=$(ynh_app_setting_get --app=$app --key=is_public) is_public=$(ynh_app_setting_get --app=$app --key=is_public)
final_path=$(ynh_app_setting_get --app=$app --key=final_path) final_path=$(ynh_app_setting_get --app=$app --key=final_path)
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================
# CHECK VERSION # CHECK VERSION
@ -104,16 +105,9 @@ ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependenc
#================================================= #=================================================
# Set permissions on app files # Set permissions on app files
chown -R www-data:www-data $final_path chown -R $app: $final_path
chmod -R a+rw $final_path chmod -R a+rw $final_path
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=2
yunohost service add $app --description "A short description of the app" --log "/var/log/$app/$app.log"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
#================================================= #=================================================

BIN
sources/french.zip Normal file

Binary file not shown.

BIN
sources/gallery.zip Normal file

Binary file not shown.

BIN
sources/highlight.zip Normal file

Binary file not shown.

BIN
sources/markdown.zip Normal file

Binary file not shown.