1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pleroma_ynh.git synced 2024-09-03 20:15:59 +02:00

Limit to buster

This commit is contained in:
yalh76 2020-10-28 00:06:12 +01:00
parent 4f6c96de08
commit 145137da06
4 changed files with 1 additions and 13 deletions

View file

@ -18,7 +18,7 @@
"name": "yalh76" "name": "yalh76"
}], }],
"requirements": { "requirements": {
"yunohost": ">= 3.5" "yunohost": ">= 4"
}, },
"multi_instance": false, "multi_instance": false,
"services": [ "services": [

View file

@ -50,10 +50,6 @@ app=$YNH_APP_INSTANCE_NAME
#================================================= #=================================================
ynh_script_progression --message="Validating installation parameters..." ynh_script_progression --message="Validating installation parameters..."
if [ "$(lsb_release --codename --short)" != "buster" ]; then
ynh_die --message="Sorry, but this app can only be installed on Buster :("
fi
final_path=/var/www/$app final_path=/var/www/$app
test ! -e "$final_path" || ynh_die --message="This path already contains a folder" test ! -e "$final_path" || ynh_die --message="This path already contains a folder"

View file

@ -42,10 +42,6 @@ datadir=$(ynh_app_setting_get --app=$app --key=datadir)
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." ynh_script_progression --message="Validating restoration parameters..."
if [ "$(lsb_release --codename --short)" != "buster" ]; then
ynh_die --message="Sorry, but this app can only be restored on Buster :("
fi
ynh_webpath_available --domain=$domain --path_url=$path_url \ ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}" || ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d $final_path \ test ! -d $final_path \

View file

@ -46,10 +46,6 @@ upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
ynh_script_progression --message="Ensuring downward compatibility..." ynh_script_progression --message="Ensuring downward compatibility..."
if [ "$(lsb_release --codename --short)" != "buster" ]; then
ynh_die --message="Sorry, but this app can only be upgraded on Buster :("
fi
# Fix is_public as a boolean value # Fix is_public as a boolean value
if [ "$is_public" = "Yes" ]; then if [ "$is_public" = "Yes" ]; then
ynh_app_setting_set --app=$app --key=is_public --value=1 ynh_app_setting_set --app=$app --key=is_public --value=1