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:
parent
0a94ec3d6e
commit
110967fa73
7 changed files with 12 additions and 12 deletions
|
@ -14,7 +14,7 @@
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=0
|
multi_instance=1
|
||||||
wrong_user=1
|
wrong_user=1
|
||||||
wrong_path=1
|
wrong_path=1
|
||||||
incorrect_path=1
|
incorrect_path=1
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
"name": "mbugeia",
|
"name": "mbugeia",
|
||||||
"email": "maxime@max.privy.place"
|
"email": "maxime@max.privy.place"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
"nginx",
|
"nginx",
|
||||||
"php5-fpm",
|
"php5-fpm",
|
||||||
|
|
|
@ -13,7 +13,7 @@ source /usr/share/yunohost/helpers
|
||||||
# Abort script if errors
|
# Abort script if errors
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
app="kanboard"
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
# Set app specific variables
|
# Set app specific variables
|
||||||
dbname=$app
|
dbname=$app
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
app="kanboard"
|
|
||||||
|
|
||||||
# Source local helpers
|
# Source local helpers
|
||||||
source ./_common.sh
|
source ./_common.sh
|
||||||
|
|
||||||
|
@ -12,10 +10,12 @@ source /usr/share/yunohost/helpers
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$1
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path=$2
|
path=$YNH_APP_ARG_PATH
|
||||||
admin=$3
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
is_public=$4
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
|
||||||
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
# TODO: Check domain/path availability with app helper
|
# TODO: Check domain/path availability with app helper
|
||||||
yunohost app checkurl "${domain}${path}" -a "$app" \
|
yunohost app checkurl "${domain}${path}" -a "$app" \
|
||||||
|
|
|
@ -6,7 +6,7 @@ source ./_common.sh
|
||||||
# Source app helpers
|
# Source app helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
app="kanboard"
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
dbname=$app
|
dbname=$app
|
||||||
dbuser=$app
|
dbuser=$app
|
||||||
|
|
|
@ -9,7 +9,7 @@ source /usr/share/yunohost/helpers
|
||||||
# Abort script if errors
|
# Abort script if errors
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
app="kanboard"
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
# Set app specific variables
|
# Set app specific variables
|
||||||
dbname=$app
|
dbname=$app
|
||||||
|
|
|
@ -9,7 +9,7 @@ source /usr/share/yunohost/helpers
|
||||||
# Abort script if errors
|
# Abort script if errors
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
app="kanboard"
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
# Set app specific variables
|
# Set app specific variables
|
||||||
dbname=$app
|
dbname=$app
|
||||||
|
|
Loading…
Reference in a new issue