mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
Remove is_public
This commit is contained in:
parent
d18b88732a
commit
742a5e5312
6 changed files with 6 additions and 30 deletions
|
@ -88,8 +88,8 @@ Prerequisite: **OnlyOffice should be public**, see previous section.
|
||||||
|
|
||||||
#### Supported architectures
|
#### Supported architectures
|
||||||
|
|
||||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)
|
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)
|
||||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/onlyoffice/)
|
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/onlyoffice/)
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
|
|
|
@ -88,8 +88,8 @@ Prérequis : **OnlyOffice doit être public**, voir la section précédente.
|
||||||
|
|
||||||
#### Architectures supportées
|
#### Architectures supportées
|
||||||
|
|
||||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)
|
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)
|
||||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/onlyoffice/)
|
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/onlyoffice/)
|
||||||
|
|
||||||
## Liens
|
## Liens
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
upgrade=1
|
upgrade=1
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=0
|
multi_instance=0
|
||||||
port_already_use=0
|
|
||||||
change_url=1
|
change_url=1
|
||||||
;;; Options
|
;;; Options
|
||||||
Email=
|
Email=
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Create and edit documents collaboratively",
|
"en": "Create and edit documents collaboratively",
|
||||||
"fr": "Créez et éditer des documents collaborativement"
|
"fr": "Créez et éditer des documents collaborativement"
|
||||||
},
|
},
|
||||||
"version": "6.1.0~ynh1",
|
"version": "6.1.0~ynh2",
|
||||||
"url": "https://www.onlyoffice.com",
|
"url": "https://www.onlyoffice.com",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
"email": "liberodark@gmail.com"
|
"email": "liberodark@gmail.com"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 3.8.4"
|
"yunohost": ">= 4.1.7"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": false,
|
||||||
"services": [
|
"services": [
|
||||||
|
@ -25,10 +25,6 @@
|
||||||
{
|
{
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"type": "domain",
|
"type": "domain",
|
||||||
"ask": {
|
|
||||||
"en": "Choose a domain name for OnlyOffice",
|
|
||||||
"fr": "Choisissez un nom de domaine pour OnlyOffice"
|
|
||||||
},
|
|
||||||
"example": "office.yunohost.domain",
|
"example": "office.yunohost.domain",
|
||||||
"help": {
|
"help": {
|
||||||
"en": "You should not install OnlyOffice on your main YunoHost domain, especially if you want to use it with a Nextcloud installed on the same domain.",
|
"en": "You should not install OnlyOffice on your main YunoHost domain, especially if you want to use it with a Nextcloud installed on the same domain.",
|
||||||
|
@ -38,10 +34,6 @@
|
||||||
{
|
{
|
||||||
"name": "path",
|
"name": "path",
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"ask": {
|
|
||||||
"en": "Choose a path for OnlyOffice",
|
|
||||||
"fr": "Choisissez un chemin pour OnlyOffice"
|
|
||||||
},
|
|
||||||
"example": "/onlyoffice or /",
|
"example": "/onlyoffice or /",
|
||||||
"help": {
|
"help": {
|
||||||
"en": "Root path / if you chose a subdomain, e.g. office.yunohost.domain.",
|
"en": "Root path / if you chose a subdomain, e.g. office.yunohost.domain.",
|
||||||
|
@ -66,10 +58,6 @@
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"ask": {
|
|
||||||
"en": "Is it a public application? If you want to connect the app to Nextcloud: check/true!",
|
|
||||||
"fr": "Est-ce une application publique ? Si vous voulez connecter l'app à Nextcloud : cochez/true!"
|
|
||||||
},
|
|
||||||
"help": {
|
"help": {
|
||||||
"en": "You will only be able to connect OnlyOffice to Nextcloud if both apps are public!",
|
"en": "You will only be able to connect OnlyOffice to Nextcloud if both apps are public!",
|
||||||
"fr": "Nextcloud et OnlyOffice doivent être des applications publiques si vous voulez les connecter !"
|
"fr": "Nextcloud et OnlyOffice doivent être des applications publiques si vous voulez les connecter !"
|
||||||
|
|
|
@ -45,7 +45,6 @@ ynh_script_progression --message="Storing installation settings..."
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||||
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
||||||
ynh_app_setting_set --app=$app --key=is_public --value=$is_public
|
|
||||||
ynh_app_setting_set --app=$app --key=nextclouddomain --value=$nextclouddomain
|
ynh_app_setting_set --app=$app --key=nextclouddomain --value=$nextclouddomain
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||||
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
|
|
||||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||||
db_user=$db_name
|
db_user=$db_name
|
||||||
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
||||||
|
@ -30,15 +29,6 @@ nextclouddomain=$(ynh_app_setting_get --app=$app --key=nextclouddomain)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..."
|
ynh_script_progression --message="Ensuring downward compatibility..."
|
||||||
|
|
||||||
# Fix is_public as a boolean value
|
|
||||||
if [ "$is_public" = "Yes" ]; then
|
|
||||||
ynh_app_setting_set --app=$app --key=is_public --value=1
|
|
||||||
is_public=1
|
|
||||||
elif [ "$is_public" = "No" ]; then
|
|
||||||
ynh_app_setting_set --app=$app --key=is_public --value=0
|
|
||||||
is_public=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If db_name doesn't exist, create it
|
# If db_name doesn't exist, create it
|
||||||
if [ -z "$db_name" ]; then
|
if [ -z "$db_name" ]; then
|
||||||
db_name=$(ynh_sanitize_dbid --db_name=$app)
|
db_name=$(ynh_sanitize_dbid --db_name=$app)
|
||||||
|
|
Loading…
Add table
Reference in a new issue