-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
141 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
"en": "Online storage, file sharing platform and various other applications", | ||
"fr": "Stockage en ligne, plateforme de partage de fichiers et diverses autres applications" | ||
}, | ||
"version": "25.0.4~ynh1", | ||
"version": "26.0.2~ynh3", | ||
"url": "https://nextcloud.com", | ||
"upstream": { | ||
"license": "AGPL-3.0", | ||
|
@@ -23,7 +23,7 @@ | |
"email": "[email protected]" | ||
}, | ||
"requirements": { | ||
"yunohost": ">= 11.0.9" | ||
"yunohost": ">= 11.1.15" | ||
}, | ||
"multi_instance": true, | ||
"services": [ | ||
|
@@ -51,8 +51,8 @@ | |
"name": "is_public", | ||
"type": "boolean", | ||
"help": { | ||
"en": "If enabled, Nextcloud will be accessible by Nextcloud Desktop and by users without a YunoHost account. This can be changed later in the webadmin.", | ||
"fr": "Si cette case est cochée, Nextcloud sera accessible par Nextcloud Desktop et par les utilisateurs n’ayant pas de compte YunoHost. Vous pourrez changer dans la webadmin." | ||
"en": "You need to enable public if you want to connect Nextcloud Desktop client to Nextcloud server. This can be changed later via the webadmin.", | ||
"fr": "Vous devez cocher cette case si vous souhaitez connecter le client Nextcloud Desktop au serveur Nextcloud. Cela peut être modifié ultérieurement via l'administrateur Web." | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
}, | ||
"default": true | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Open a connection as a user | ||
# | ||
# example: ynh_mysql_connect_as --user="user" --password="pass" <<< "UPDATE ...;" | ||
# example: ynh_mysql_connect_as --user="user" --password="pass" --default_character_set="utf8mb4" < /path/to/file.sql | ||
# | ||
# usage: ynh_mysql_connect_as --user=user --password=password [--database=database] [--default_character_set=character-set] | ||
# | arg: -u, --user= - the user name to connect as | ||
# | arg: -p, --password= - the user password | ||
# | arg: -d, --database= - the database to connect to | ||
# | arg: -c, --default_character_set= - the charset to use | ||
# | ||
# Requires YunoHost version 2.2.4 or higher. | ||
ynh_mysql_connect_as() { | ||
# Declare an array to define the options of this helper. | ||
local legacy_args=updc | ||
local -A args_array=( [u]=user= [p]=password= [d]=database= [c]=default_character_set= ) | ||
local user | ||
local password | ||
local database | ||
local default_character_set | ||
# Manage arguments with getopts | ||
ynh_handle_getopts_args "$@" | ||
database="${database:-}" | ||
default_character_set="${default_character_set:-}" | ||
|
||
if [ -n "$default_character_set" ] | ||
then | ||
default_character_set="--default-character-set=$default_character_set" | ||
else | ||
default_character_set="--default-character-set=latin1" | ||
fi | ||
|
||
mysql --user="$user" --password="$password" "$default_character_set" --batch "$database" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
# Dump a database | ||
# | ||
# example: ynh_mysql_dump_db --database=roundcube --default_character_set="utf8mb4" > ./dump.sql | ||
# | ||
# usage: ynh_mysql_dump_db --database=database | ||
# | arg: -d, --database= - the database name to dump | ||
# | arg: -c, --default_character_set= - the charset to use | ||
# | ret: the mysqldump output | ||
# | ||
# Requires YunoHost version 2.2.4 or higher. | ||
ynh_mysql_dump_db() { | ||
# Declare an array to define the options of this helper. | ||
local legacy_args=dc | ||
local -A args_array=( [d]=database= [c]=default_character_set= ) | ||
local database | ||
local default_character_set | ||
# Manage arguments with getopts | ||
ynh_handle_getopts_args "$@" | ||
default_character_set="${default_character_set:-}" | ||
MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql | ||
|
||
if [ -n "$default_character_set" ] | ||
then | ||
default_character_set="--default-character-set=$default_character_set" | ||
else | ||
# By default, default character set is "latin1" | ||
default_character_set="--default-character-set=latin1" | ||
fi | ||
|
||
if [ -f "$MYSQL_ROOT_PWD_FILE" ]; then | ||
mysqldump --user="root" --password="$(cat $MYSQL_ROOT_PWD_FILE)" --single-transaction --skip-dump-date "$default_character_set" "$database" | ||
else | ||
mysqldump --single-transaction --skip-dump-date "$default_character_set" "$database" | ||
fi | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Translation is not the same as original content + it's not very compatible with command line interface (you don't "tick" anything in CLI)
-> "Vous devez activer cette option"