1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00
* version 3.2.0

* fix nodejs_version variable in upgrade script (#31) (#32)

* correct a sile config
This commit is contained in:
frju365 2019-10-01 23:48:20 +02:00 committed by GitHub
parent a5d44c470f
commit e5617adfdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -4,7 +4,7 @@
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "Encrypted Pad", "en": "Encrypted Pad",
"fr": "Créateur de pad chiffré." "fr": "Créateur de pad chiffré."
}, },
"version": "2.16.0", "version": "2.16.0",
"url": "https://cryptpad.fr/", "url": "https://cryptpad.fr/",
@ -25,26 +25,26 @@
"install" : [ "install" : [
{ {
"name": "domain", "name": "domain",
"type": "domain", "type": "domain",
"ask": { "ask": {
"en": "Choose a domain name for CryptPad", "en": "Choose a domain name for CryptPad",
"fr": "Choisissez un nom de domaine pour CryptPad" "fr": "Choisissez un nom de domaine pour CryptPad"
}, },
"example": "example.com" "example": "example.com"
}, },
{ {
"name": "path", "name": "path",
"type": "path", "type": "path",
"ask": { "ask": {
"en": "Choose a path for CryptPad, only / is allowed.", "en": "Choose a path for CryptPad, only / is allowed.",
"fr": "Choisissez un chemin pour CryptPad, seul / est autorisé." "fr": "Choisissez un chemin pour CryptPad, seul / est autorisé."
}, },
"example": "/", "example": "/",
"default": "/" "default": "/"
}, },
{ {
"name": "email", "name": "email",
"type": "email", "type": "email",
"ask": { "ask": {
"en": "Choose an email for the admin user.", "en": "Choose an email for the admin user.",
"fr": "Choisissez une adresse mail pour l'administrateur" "fr": "Choisissez une adresse mail pour l'administrateur"

View file

@ -124,7 +124,7 @@ chown admin: -R $install_log
#================================================= #=================================================
# Copy default configuration file # Copy default configuration file
mv "$final_path/config.example.js" "$final_path/config.js" mv "../conf/config.js" "$final_path/config.js"
ynh_replace_string "_domain = 'http://localhost:3000/'" "_domain = 'https://$domain$path_url'" "$final_path/config.js" ynh_replace_string "_domain = 'http://localhost:3000/'" "_domain = 'https://$domain$path_url'" "$final_path/config.js"
# Set service port # Set service port
ynh_replace_string "__PORT__" "$port" "$final_path/config.js" ynh_replace_string "__PORT__" "$port" "$final_path/config.js"