From d50b9cebf9ecce3c3430f5049e166b83f0dac672 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 19 Jul 2022 23:22:01 +0200 Subject: [PATCH] fix missing game --- manifest.json | 2 +- scripts/upgrade | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 59bcb87..96decc5 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Free, open source voxel game engine and game. Need a client to connect to the server.", "fr": "Moteur de jeu de type « bac à sable » gratuit et open source. Nécessite un client pour se connecter au serveur." }, - "version": "5.5.1~ynh1", + "version": "5.5.1~ynh2", "url": "http://www.minetest.net/", "upstream": { "license": "MIT", diff --git a/scripts/upgrade b/scripts/upgrade index 718d1f6..76046f7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,6 +89,12 @@ if [ -z $datadir ]; then ynh_app_setting_delete --app=$app --key=home_path fi +# If game doesn't exist, create it +if [ -z $game ]; then + game="minetest_game" + ynh_app_setting_set --app=$app --key=game --value=$game +fi + # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all