Compare commits

..

3 commits

Author SHA1 Message Date
mwiegand
f075d4f3cd libs/apt some comments and clarifications 2022-03-03 09:38:12 +01:00
mwiegand
349b4e9d3f update gitea 2022-03-03 09:34:27 +01:00
mwiegand
41067d1aa4 php less children 2022-02-24 01:05:16 +01:00
3 changed files with 12 additions and 7 deletions

View file

@ -19,10 +19,10 @@ def www_conf(metadata):
'listen.owner': 'www-data',
'listen.group': 'www-data',
'pm': 'dynamic',
'pm.max_children': '100',
'pm.start_servers': '40',
'pm.min_spare_servers': '30',
'pm.max_spare_servers': '60',
'pm.max_children': '60',
'pm.start_servers': '20',
'pm.min_spare_servers': '10',
'pm.max_spare_servers': '20',
'pm.max_requests': '500',
},
},

View file

@ -1,4 +1,5 @@
# https://manpages.debian.org/jessie/apt/sources.list.5.de.html
from urllib.parse import urlparse
from re import search, sub
from functools import total_ordering
@ -7,16 +8,20 @@ from functools import total_ordering
@total_ordering
class AptSource():
def __init__(self, string):
# parse options, which are optional
if search(r'\[.*\]', string):
self.options = {
k:v.split(',') for k,v in (
e.split('=') for e in search(r'\[(.*)\]', string)[1].split()
)
}
string_without_options = sub(r'\[.*\]', '', string)
else:
self.options = {}
string_without_options = string
parts = sub(r'\[.*\]', '', string).split()
# parse rest of source, now in defined order
parts = string_without_options.split()
self.type = parts[0]
self.url = urlparse(parts[1])
self.suite = parts[2]

View file

@ -54,8 +54,8 @@
'download_server': 'netcup.mails',
},
'gitea': {
'version': '1.15.5',
'sha256': 'c3f190848c271bf250d385b80c1a98a7e2c9b23d092891cf1f7e4ce18c736484',
'version': '1.16.2',
'sha256': 'ec9b01d119cfe47df44d580c1d321132ce054ff139b05b0a35da91268ca2bcbe',
'domain': 'git.sublimity.de',
},
'gollum': {