|
|
@@ -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
|
|
|
#=================================================
|