diff --git a/scripts/_common.sh b/scripts/_common.sh index 6507881..5116958 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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)" } diff --git a/scripts/install b/scripts/install index bffc5d6..26050f4 100755 --- a/scripts/install +++ b/scripts/install @@ -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) diff --git a/scripts/restore b/scripts/restore index bf9525f..3888fc9 100755 --- a/scripts/restore +++ b/scripts/restore @@ -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 #=================================================