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:
parent
0a34e7d30e
commit
32ded35904
5 changed files with 15 additions and 19 deletions
|
@ -8,7 +8,7 @@ location __PATH__/ {
|
|||
}
|
||||
|
||||
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 on;
|
||||
try_files $uri $uri/index.html @kresus;
|
||||
|
@ -24,4 +24,4 @@ location @kresus {
|
|||
|
||||
proxy_pass http://127.0.0.1:__PORT__;
|
||||
proxy_redirect off;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
"email": "jean-baptiste@holcroft.fr"
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">= 2.7.14"
|
||||
"yunohost": ">= 3.5.0"
|
||||
},
|
||||
"version": "0.13.3~ynh2",
|
||||
"version": "0.13.3~ynh3",
|
||||
"multi_instance": true,
|
||||
"services": [
|
||||
"nginx"
|
||||
|
|
|
@ -6,12 +6,7 @@
|
|||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
if [ ! -e _common.sh ]; then
|
||||
# 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 ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -23,8 +23,6 @@ ynh_abort_if_errors
|
|||
# Retrieve arguments
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path_url=$YNH_APP_ARG_PATH
|
||||
port=$(ynh_find_port 9876)
|
||||
salt=$(ynh_string_random 40)
|
||||
|
||||
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" 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" 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?
|
||||
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"
|
||||
|
|
|
@ -6,12 +6,7 @@
|
|||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
if [ ! -e _common.sh ]; then
|
||||
# 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 ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue