1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/chuwiki_ynh.git synced 2024-09-03 18:16:18 +02:00
This commit is contained in:
Éric Gaspar 2023-01-10 11:41:26 +01:00
parent 098937aadc
commit da8b76fb33
3 changed files with 5 additions and 10 deletions

View file

@ -2,12 +2,7 @@
location __PATH__/ { location __PATH__/ {
# Path to source # Path to source
alias __FINALPATH__/ ; alias __FINALPATH__/;
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
index index.php; index index.php;
client_max_body_size 128M; client_max_body_size 128M;

View file

@ -3,8 +3,8 @@
"id": "chuwiki", "id": "chuwiki",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "A simple, fast and flexible wiki.", "en": "Simple, fast and flexible wiki",
"fr": "Un wiki simple, rapide et flexible." "fr": "Wiki simple, rapide et flexible"
}, },
"version": "2.0~ynh2", "version": "2.0~ynh2",
"url": "http://chuwiki.genezys.net/", "url": "http://chuwiki.genezys.net/",
@ -23,7 +23,7 @@
"url": "https://stylix58.netlify.app/" "url": "https://stylix58.netlify.app/"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.2.4" "yunohost": ">= 11.0.9"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [

View file

@ -81,7 +81,7 @@ then
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$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 --dest_dir="$final_path" #--keep="$final_path/configuration.ini" ynh_setup_source --dest_dir="$final_path" #--keep="configuration.ini"
# Copy the admin saved settings from tmp directory to final config path # Copy the admin saved settings from tmp directory to final config path
cp -a "$tmpdir/configuration.ini" "$final_path/configuration.ini" cp -a "$tmpdir/configuration.ini" "$final_path/configuration.ini"