1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kresus_ynh.git synced 2024-09-03 19:36:10 +02:00

apply package_linter advices

This commit is contained in:
Jean-Baptiste Holcroft 2019-07-14 18:42:38 +02:00
parent 0a34e7d30e
commit 32ded35904
5 changed files with 15 additions and 19 deletions

View file

@ -8,7 +8,7 @@ location __PATH__/ {
} }
location ~ __PATH__/\.(css|js|png|jpe?g|svg|eot|woff2?)$ { location ~ __PATH__/\.(css|js|png|jpe?g|svg|eot|woff2?)$ {
add_header Cache-Control 'max-age=2592000, must-revalidate, public'; more_set_headers Cache-Control 'max-age=2592000, must-revalidate, public';
gzip_types text/plain text/css application/javascript text/javascript; gzip_types text/plain text/css application/javascript text/javascript;
gzip on; gzip on;
try_files $uri $uri/index.html @kresus; try_files $uri $uri/index.html @kresus;
@ -24,4 +24,4 @@ location @kresus {
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
proxy_redirect off; proxy_redirect off;
} }

View file

@ -13,9 +13,9 @@
"email": "jean-baptiste@holcroft.fr" "email": "jean-baptiste@holcroft.fr"
}, },
"requirements": { "requirements": {
"yunohost": ">= 2.7.14" "yunohost": ">= 3.5.0"
}, },
"version": "0.13.3~ynh2", "version": "0.13.3~ynh3",
"multi_instance": true, "multi_instance": true,
"services": [ "services": [
"nginx" "nginx"

View file

@ -6,12 +6,7 @@
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
if [ ! -e _common.sh ]; then source ../settings/scripts/_common.sh
# Get the _common.sh file if it's not in the current directory
cp ../settings/scripts/_common.sh ./_common.sh
chmod a+rx _common.sh
fi
source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#================================================= #=================================================

View file

@ -23,8 +23,6 @@ ynh_abort_if_errors
# Retrieve arguments # Retrieve arguments
domain=$YNH_APP_ARG_DOMAIN domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH path_url=$YNH_APP_ARG_PATH
port=$(ynh_find_port 9876)
salt=$(ynh_string_random 40)
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
@ -49,6 +47,14 @@ ynh_webpath_register "$app" "$domain" "$path_url"
ynh_app_setting_set "$app" domain "$domain" ynh_app_setting_set "$app" domain "$domain"
ynh_app_setting_set "$app" path "$path_url" ynh_app_setting_set "$app" path "$path_url"
#=================================================
# DEFAULT SETTINGS
#=================================================
port=$(ynh_find_port 9876)
salt=$(ynh_string_random 40)
ynh_app_setting_set "$app" port "$port" ynh_app_setting_set "$app" port "$port"
ynh_app_setting_set "$app" salt "$salt" ynh_app_setting_set "$app" salt "$salt"
@ -191,4 +197,4 @@ If you changed it manually and upgrade Kresus, you'll find a backup in $final_pa
Are you facing an issue, want to improve this app or say thank you? Are you facing an issue, want to improve this app or say thank you?
Please open a new issue in this project: https://github.com/YunoHost-Apps/kresus_ynh Please open a new issue in this project: https://github.com/YunoHost-Apps/kresus_ynh
" "
ynh_send_readme_to_admin "$message" ynh_send_readme_to_admin "$message"

View file

@ -6,12 +6,7 @@
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
if [ ! -e _common.sh ]; then source ../settings/scripts/_common.sh
# Get the _common.sh file if it's not in the current directory
cp ../settings/scripts/_common.sh ./_common.sh
chmod a+rx _common.sh
fi
source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#================================================= #=================================================