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:
ericgaspar 2021-06-07 17:51:36 +02:00
parent d92d09ae79
commit 4a1fa2d555
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 13 additions and 14 deletions

View file

@ -11,7 +11,7 @@
setup_private=1 setup_private=1
setup_public=1 setup_public=1
upgrade=1 upgrade=1
upgrade=1 from_commit=CommitHash #upgrade=1 from_commit=CommitHash
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
change_url=1 change_url=1

View file

@ -0,0 +1,3 @@
## Configuration
How to configure this app: via the `/var/www/chuwiki/configuration.ini` file.

3
doc/DISCLAIMER_fr.md Normal file
View file

@ -0,0 +1,3 @@
## Configuration
Comment configurer cette application : via le fichier `/var/www/chuwiki/configuration.ini`.

View file

@ -11,8 +11,10 @@
"upstream": { "upstream": {
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"website": "http://chuwiki.genezys.net/", "website": "http://chuwiki.genezys.net/",
"demo": "http://chuwiki.genezys.net/wiki/Bac%20%C3%A0%20sable",
"admindoc": "http://chuwiki.genezys.net/", "admindoc": "http://chuwiki.genezys.net/",
"userdoc": "https://yunohost.org/apps" "userdoc": "https://yunohost.org/apps",
"code": "https://github.com/genezys/chuwiki"
}, },
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"maintainer": { "maintainer": {
@ -21,7 +23,7 @@
"url": "https://stylix58.netlify.app/" "url": "https://stylix58.netlify.app/"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.1.3" "yunohost": ">= 4.2.4"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [

View file

@ -66,7 +66,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=1
# 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" ynh_setup_source --dest_dir="$final_path" --keep="$final_path/configuration.ini"
fi fi
chmod 750 "$final_path" chmod 750 "$final_path"
@ -89,21 +89,12 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config ynh_add_fpm_config
#=================================================
# GENERIC FINALIZATION
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions on app files
chown -R root: $final_path
#================================================= #=================================================
# INTEGRATE SERVICE IN YUNOHOST # INTEGRATE SERVICE IN YUNOHOST
#================================================= #=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Chuwiki service" --log="/var/log/$app/$app.log" yunohost service add $app --description="ChuWiki service" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX