浏览代码

filling variables

Chris Vogel 1 年之前
父节点
当前提交
c60d484373
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 5 0
      manifest.toml
  2. 3 0
      scripts/install

+ 5 - 0
manifest.toml

@@ -79,6 +79,9 @@ ram.runtime = "50M"
     [install.mail_user]
     [install.mail_user]
     # @@ any type for this to make sure it can be used as the user part of an email address?
     # @@ any type for this to make sure it can be used as the user part of an email address?
 
 
+    [install.flohmarkt_name]
+    # flohmarkt.conf: "InstanceName"
+
 [resources]
 [resources]
     # See the packaging documentation for the full set
     # See the packaging documentation for the full set
     # of explanation regarding the behavior and properties for each of those
     # of explanation regarding the behavior and properties for each of those
@@ -106,6 +109,8 @@ ram.runtime = "50M"
     #    https://yunohost.org/de/packaging_apps_resources#properties-4
     #    https://yunohost.org/de/packaging_apps_resources#properties-4
     #    → [install] section
     #    → [install] section
     # these shouldn't be necessary, because defined in the [install] section
     # these shouldn't be necessary, because defined in the [install] section
+    #    → yes, works. With the values from install section the mailuser ends up in 
+    #      /etc/postfix/app_senders_login_maps
     # mail_user = "replace_mail_user_in_manifest_toml"
     # mail_user = "replace_mail_user_in_manifest_toml"
     # mail_domain = "replace_mail_domain_in_manifest.toml"
     # mail_domain = "replace_mail_domain_in_manifest.toml"
     # @@ how to create a couchdb user if needed? in install-script manually?
     # @@ how to create a couchdb user if needed? in install-script manually?

+ 3 - 0
scripts/install

@@ -61,6 +61,9 @@ python3 -m venv --without-pip "$install_dir/venv"
     $install_dir/venv/bin/pip3 install -r "$install_dir/$app/requirements.txt"
     $install_dir/venv/bin/pip3 install -r "$install_dir/$app/requirements.txt"
 )
 )
 
 
+# JwtSecret
+jwtsecret = $(openssl rand 256 | base64 -w 0)
+
 # @@ configure
 # @@ configure
 ynh_add_config --template="../conf/flohmarkt.conf" --destination="$install_dir/$app/flohmarkt.conf"
 ynh_add_config --template="../conf/flohmarkt.conf" --destination="$install_dir/$app/flohmarkt.conf"