1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00

Let's make this app a multi-instance one

This commit is contained in:
Jean-Baptiste Holcroft 2017-10-19 12:31:32 +02:00
parent 0a94ec3d6e
commit 110967fa73
7 changed files with 12 additions and 12 deletions

View file

@ -14,7 +14,7 @@
setup_public=1
upgrade=1
backup_restore=1
multi_instance=0
multi_instance=1
wrong_user=1
wrong_path=1
incorrect_path=1

View file

@ -15,7 +15,7 @@
"name": "mbugeia",
"email": "maxime@max.privy.place"
},
"multi_instance": false,
"multi_instance": true,
"services": [
"nginx",
"php5-fpm",

View file

@ -13,7 +13,7 @@ source /usr/share/yunohost/helpers
# Abort script if errors
ynh_abort_if_errors
app="kanboard"
app=$YNH_APP_INSTANCE_NAME
# Set app specific variables
dbname=$app

View file

@ -1,7 +1,5 @@
#!/bin/bash
app="kanboard"
# Source local helpers
source ./_common.sh
@ -12,10 +10,12 @@ source /usr/share/yunohost/helpers
ynh_abort_if_errors
# Retrieve arguments
domain=$1
path=$2
admin=$3
is_public=$4
domain=$YNH_APP_ARG_DOMAIN
path=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
is_public=$YNH_APP_ARG_IS_PUBLIC
app=$YNH_APP_INSTANCE_NAME
# TODO: Check domain/path availability with app helper
yunohost app checkurl "${domain}${path}" -a "$app" \

View file

@ -6,7 +6,7 @@ source ./_common.sh
# Source app helpers
source /usr/share/yunohost/helpers
app="kanboard"
app=$YNH_APP_INSTANCE_NAME
dbname=$app
dbuser=$app

View file

@ -9,7 +9,7 @@ source /usr/share/yunohost/helpers
# Abort script if errors
ynh_abort_if_errors
app="kanboard"
app=$YNH_APP_INSTANCE_NAME
# Set app specific variables
dbname=$app

View file

@ -9,7 +9,7 @@ source /usr/share/yunohost/helpers
# Abort script if errors
ynh_abort_if_errors
app="kanboard"
app=$YNH_APP_INSTANCE_NAME
# Set app specific variables
dbname=$app