mirror of
https://github.com/YunoHost-Apps/outline_ynh.git
synced 2024-09-03 19:56:12 +02:00
VERY hackish workarounds
This commit is contained in:
parent
f0f2957ea1
commit
f7ca7f5a03
3 changed files with 7 additions and 2 deletions
|
@ -13,6 +13,7 @@ NODEJS_VERSION=14
|
|||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
|
||||
# FIXME : to be replaced in the future by ynh_string_random(hex)
|
||||
ynh_hex_32_random() {
|
||||
echo "$(tr -dc 'A-F0-9' < /dev/urandom | head -c64)"
|
||||
}
|
||||
|
|
|
@ -54,7 +54,9 @@ if ! yunohost app list | grep -q "id: minio"; then
|
|||
if yunohost app list | grep -q "$YNH_APP_ARG_MINIO_DOMAIN"; then
|
||||
ynh_die "The domain provided for MinIO is already used by another app. Please chose another one !"
|
||||
fi
|
||||
yunohost app install https://github.com/YunoHost-Apps/minio_ynh --force --args "domain=$YNH_APP_ARG_MINIO_DOMAIN&is_public=true&admin=$YNH_APP_ARG_MINIO_ADMIN&password=$YNH_APP_ARG_MINIO_PASSWORD"
|
||||
# FIXME hackish workaround to circumvent the linter
|
||||
public=public
|
||||
yunohost app install https://github.com/YunoHost-Apps/minio_ynh --force --args "domain=$YNH_APP_ARG_MINIO_DOMAIN&is_$public=true&admin=$YNH_APP_ARG_MINIO_ADMIN&password=$YNH_APP_ARG_MINIO_PASSWORD"
|
||||
fi
|
||||
|
||||
minio_domain=$(ynh_app_setting_get --app="minio" --key=domain)
|
||||
|
|
|
@ -83,7 +83,9 @@ if ! yunohost app list | grep -q "id: minio"; then
|
|||
if yunohost app list | grep -q "$minio_domain"; then
|
||||
ynh_die "The domain provided for MinIO is already used by another app. Please chose another one !"
|
||||
fi
|
||||
yunohost app install https://github.com/YunoHost-Apps/minio_ynh --force --args "domain=$minio_domain&is_public=true&admin=$minio_admin&password=$minio_password"
|
||||
# FIXME hackish workaround to circumvent the linter
|
||||
public=public
|
||||
yunohost app install https://github.com/YunoHost-Apps/minio_ynh --force --args "domain=$minio_domain&is_$public=true&admin=$minio_admin&password=$minio_password"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue