1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00
This commit is contained in:
ericgaspar 2021-02-26 09:06:40 +01:00
parent 695f18cd51
commit a8e3a8006f
No known key found for this signature in database
GPG key ID: 574F281483054D44
6 changed files with 11 additions and 7 deletions

View file

@ -32,7 +32,7 @@ You can access Etherpad's admin panel at `domain.tld/admin`. The configuration f
## Documentation
* Official documentation: http://etherpad.org/doc/v1.8.8
* Official documentation: http://etherpad.org/doc/v1.8.10
* YunoHost documentation: https://yunohost.org/#/app_etherpad
## YunoHost specific features

View file

@ -32,7 +32,7 @@ Vous pouvez accéder au panneau d'administration d'Etherpad à l'adresse `domain
## Documentation
* Documentation officielle : http://etherpad.org/doc/v1.8.8
* Documentation officielle : http://etherpad.org/doc/v1.8.10
* Documentation YunoHost : https://yunohost.org/#/app_etherpad
## Fonctionnalités spécifiques à YunoHost

View file

@ -13,7 +13,7 @@
"name": "eric_G"
},
"requirements": {
"yunohost": ">= 4.1.3"
"yunohost": ">= 4.1.7"
},
"multi_instance": true,
"services": [

View file

@ -70,7 +70,7 @@ fi
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=2
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
ynh_systemd_action --service_name=$app --action=stop --log_path=systemd
#=================================================
# MODIFY URL IN NGINX CONF

View file

@ -128,10 +128,9 @@ popd || ynh_die
ynh_script_progression --message="Configuring Etherpad..." --weight=60
ynh_add_config --template="../conf/settings.json" --destination="$final_path/settings.json"
ynh_add_config --template="../conf/credentials.json" --destination="$final_path/credentials.json"
nh_store_file_checksum --file="$final_path/settings.json"
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$final_path/settings.json"
ynh_add_config --template="../conf/credentials.json" --destination="$final_path/credentials.json"
ynh_store_file_checksum --file="$final_path/credentials.json"
#=================================================

View file

@ -127,8 +127,13 @@ ynh_system_user_create --username=$app
#=================================================
ynh_script_progression --message="Reconfiguring Etherpad..." --weight=6
ynh_backup_if_checksum_is_different --file="$final_path/settings.json"
ynh_add_config --template="../conf/settings.json" --destination="$final_path/settings.json"
ynh_store_file_checksum --file="$final_path/settings.json"
ynh_backup_if_checksum_is_different --file="$final_path/credentials.json"
ynh_add_config --template="../conf/credentials.json" --destination="$final_path/credentials.json"
ynh_store_file_checksum --file="$final_path/credentials.json"
#=================================================
# INSTALL ETHERPAD