From cd38b3eae1c2fbb17cd9b35b007cde7946d07306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 6 Dec 2023 11:56:38 +0100 Subject: [PATCH] Fix linter --- manifest.toml | 4 ++++ scripts/upgrade | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index 1733c75..d645120 100644 --- a/manifest.toml +++ b/manifest.toml @@ -53,6 +53,10 @@ ram.runtime = "100M" [install.init_admin_permission] + ask.en = "Which group will have access to Gitea admin page" + ask.fr = "Quel groupe aura accès à l'administration de Gitea" + help.en = "Users of this group should have access to Gitea admin page" + help.fr = "Les utilisateurs de ce groupe devrait avoir accès à la page d'administration de Gitea" type = "group" default = "admins" diff --git a/scripts/upgrade b/scripts/upgrade index dd8a354..33f25e4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -43,8 +43,8 @@ if [ -d "/opt/$app" ]; then fi # Move data directory -if [ -d "/home/$app" ]; then - mv "/home/$app/" "$data_dir" +if [ -d /home"/$app" ]; then + mv /home"/$app/" "$data_dir" fi # Ensure the user has the correct home dir