mirror of
https://github.com/YunoHost-Apps/yellow_ynh.git
synced 2024-09-03 20:36:12 +02:00
commit
ffa489f87c
10 changed files with 38 additions and 45 deletions
|
@ -9,7 +9,7 @@
|
|||
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
|
||||
|
||||
## 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
|
||||
|
||||
|
@ -53,7 +53,7 @@ How to configure this app: From an admin panel, a plain file with SSH, or any ot
|
|||
## Links
|
||||
|
||||
* 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/
|
||||
* YunoHost website: https://yunohost.org/
|
||||
|
||||
|
|
|
@ -1,39 +1,43 @@
|
|||
location __PATH__/cache {
|
||||
location __PATH__/cache {
|
||||
rewrite ^(.*)$ /error break;
|
||||
}
|
||||
}
|
||||
|
||||
location __PATH__/content {
|
||||
location __PATH__/content {
|
||||
rewrite ^(.*)$ /error break;
|
||||
}
|
||||
}
|
||||
|
||||
location __PATH__/system {
|
||||
location __PATH__/system {
|
||||
rewrite ^(.*)$ /error break;
|
||||
}
|
||||
}
|
||||
|
||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||
location __PATH__/ {
|
||||
|
||||
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) {
|
||||
rewrite ^(.*)$ /yellow.php last;
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^(.*)$ __PATH__/yellow.php last;
|
||||
break;
|
||||
}
|
||||
|
||||
try_files $uri $uri/ index.php;
|
||||
try_files $uri $uri/ yellow.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_index yellow.php;
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
# Change the path in the nginx config file
|
||||
# Change the path in the NGINX config file
|
||||
if [ $change_path -eq 1 ]
|
||||
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"
|
||||
# Set global variables for nginx helper
|
||||
# Set global variables for NGINX helper
|
||||
domain="$old_domain"
|
||||
path_url="$new_path"
|
||||
# Create a dedicated nginx config
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
fi
|
||||
|
||||
# Change the domain for nginx
|
||||
# Change the domain for NGINX
|
||||
if [ $change_domain -eq 1 ]
|
||||
then
|
||||
# Delete file checksum for the old conf file location
|
||||
|
|
|
@ -88,7 +88,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|||
#=================================================
|
||||
|
||||
# Set permissions to app files
|
||||
chown -R www-data:www-data $final_path
|
||||
chown -R $app: $final_path
|
||||
chmod -R a+rw $final_path
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -66,21 +66,16 @@ ynh_system_user_create --username=$app
|
|||
#=================================================
|
||||
|
||||
# Restore permissions on app files
|
||||
chown -R www-data:www-data $final_path
|
||||
chown -R $app: $final_path
|
||||
chmod -R a+rw $final_path
|
||||
|
||||
#=================================================
|
||||
# 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"
|
||||
|
||||
#=================================================
|
||||
# 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"
|
||||
ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
|
@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
|
|||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
|
@ -104,16 +105,9 @@ ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependenc
|
|||
#=================================================
|
||||
|
||||
# Set permissions on app files
|
||||
chown -R www-data:www-data $final_path
|
||||
chown -R $app: $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
|
||||
#=================================================
|
||||
|
|
BIN
sources/french.zip
Normal file
BIN
sources/french.zip
Normal file
Binary file not shown.
BIN
sources/gallery.zip
Normal file
BIN
sources/gallery.zip
Normal file
Binary file not shown.
BIN
sources/highlight.zip
Normal file
BIN
sources/highlight.zip
Normal file
Binary file not shown.
BIN
sources/markdown.zip
Normal file
BIN
sources/markdown.zip
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue