mirror of
https://github.com/YunoHost-Apps/outline_ynh.git
synced 2024-09-03 19:56:12 +02:00
Add idiot-proof check
This commit is contained in:
parent
071f56b433
commit
e2d451b47a
1 changed files with 3 additions and 0 deletions
|
@ -54,6 +54,9 @@ ynh_script_progression --message="Installing MinIO if needed..." --time --weight
|
|||
if ! yunohost app list | grep -q "id: minio"; then
|
||||
echo "MinIO is not installed. Installing... "
|
||||
yunohost tools update
|
||||
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/limezy/minio_ynh --force --args "domain=$YNH_APP_ARG_MINIO_DOMAIN&is_public=true&language=en"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue