소스 검색

put 'bullseye' in manifest, generate flohmarkt couchdb password

Chris Vogel 1 년 전
부모
커밋
8b9bad576c
2개의 변경된 파일4개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 9
      manifest.toml
  2. 3 0
      scripts/install

+ 1 - 9
manifest.toml

@@ -75,14 +75,6 @@ ram.runtime = "100M"
     ask.de = "Passwort für den admin Benutzer von CouchDB"
     help.de = "Bitte das Passwort notieren und aufheben! Dieses Passwort muss bei der Installation und bei zukünftigen Upgrades eingegeben werden. Wenn bereits eine CouchDB installiert ist, hier das Passwort der bestehenden Installation eingeben."
 
-    [install.password_couchdb_flohmarkt]
-    # cochdb flohmarkt user password
-    type = "password"
-    ask.en = "CouchDB password for flohmarkt user"
-    help.en = "This password will be used by flohmarkt during normal operation and is stored in its configuration file flohmarkt.conf"
-    ask.de = "Passwort für den admin Benutzer von CouchDB"
-    help.de = "Dieses Passwort wird von flohmarkt im normalen Betrieb verwendet und ist in der Konfigurationsdatei flohmarkt.conf gespeichert."
-
     [install.mail_user]
     # @@ any type for this to make sure it can be used as the user part of an email address?
     default = "flohmarkt"
@@ -166,7 +158,7 @@ ram.runtime = "100M"
     # python dependencies shall be installed in a venv using pip.
     packages = "python3-pip python3-full curl apt-transport-https gnupg"
     # repo for couchdb
-	extras.couchdb.repo = "deb https://apache.jfrog.io/artifactory/couchdb-deb/ $(lsb_release -c -s) main"
+	extras.couchdb.repo = "deb https://apache.jfrog.io/artifactory/couchdb-deb/ bullseye main"
 	extras.couchdb.key = "https://couchdb.apache.org/repo/keys.asc"
 	extras.couchdb.packages = ["couchdb"]
 

+ 3 - 0
scripts/install

@@ -83,6 +83,9 @@ python3 -m venv --without-pip "$install_dir/venv"
 # JwtSecret
 jwtsecret=$(ynh_string_random --length=344 --filter='a-zA-Z0-9/+')
 
+password_couchdb_flohmarkt=$(ynh_string_random --length=31 --filter='A-Za-z0-9_+/;.,')
+ynh_app_setting_set --app=$app --key=erlang_cookie --value="$password_couchdb_flohmarkt"
+
 # generate flohmarkt.conf
 ynh_add_config --template="../conf/flohmarkt.conf" --destination="$install_dir/$app/flohmarkt.conf"