Éric Gaspar 2 лет назад
Родитель
Сommit
4845df14d7
3 измененных файлов с 15 добавлено и 3 удалено
  1. 0 0
      conf/.env
  2. 3 3
      manifest.toml
  3. 12 0
      scripts/install

+ 3 - 3
manifest.toml

@@ -5,7 +5,7 @@ name = "Homarr"
 description.en = "Customizable browser's home page to interact with your homeserver's Docker containers"
 description.fr = "Page d'accueil personnalisable pour interagir avec les conteneurs Docker de votre serveur"
 
-version = "0.13.4~ynh1"
+version = "0.14.2~ynh1"
 
 maintainers = ["eric_G"]
 
@@ -37,8 +37,8 @@ ram.runtime = "50M"
 
 [resources]
         [resources.sources.main]
-        url = "https://github.com/ajnart/homarr/archive/refs/tags/v0.13.4.tar.gz"
-        sha256 = "bddeecf22f40743ff7446bc8dc8427539788425671147029a33b088aaec5967b"
+        url = "https://github.com/ajnart/homarr/archive/refs/tags/v0.14.2.tar.gz"
+        sha256 = "c8e30aaf9ccfd5c5cfa11965cbb7d0c4615c915afca73f19b0b64c8fa3abd327"
         autoupdate.strategy = "latest_github_tag"
 
     [resources.ports]

+ 12 - 0
scripts/install

@@ -9,6 +9,8 @@
 source _common.sh
 source /usr/share/yunohost/helpers
 
+secret=$(ynh_string_random --length=24)
+
 #=================================================
 # INSTALL DEPENDENCIES
 #=================================================
@@ -36,6 +38,16 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1
 # Create a dedicated NGINX config
 ynh_add_nginx_config
 
+#=================================================
+# ADD A CONFIGURATION
+#=================================================
+ynh_script_progression --message="Adding a configuration file..." --weight=1
+
+ynh_add_config --template=".env" --destination="$install_dir/.env"
+
+chmod 400 "$install_dir/.env"
+chown $app:$app "$install_dir/.env"
+
 #=================================================
 # INSTALL HOMARR
 #=================================================