[02:48] <Xpistos> Hey guys. I had a quick question, how do formulate and if then statement where the "if" is 01,04,07,10 and then is anything
[02:48] <Xpistos> anything else sorry
[02:49] <Xpistos> Anything is else to simply do nothing, or should I just use an if statement for that
[02:57] <arraybolt3> Xpistos: I'm not sure I understand your question.
[02:57] <arraybolt3> What language is this in? Bash?
[02:57] <arraybolt3> And by "01,04,07,10", what is that? A list of integers? A string?
[02:57] <Xpistos> Bash
[02:57] <Xpistos> if [ $QUARTERLY_REPORT_CHECK == "01|04|07|10" ]
[02:57] <arraybolt3> Ah, so you want it to match any of those four.
[02:57] <Xpistos> I am checking to see if it is Jan, Apr , etc
[02:58] <arraybolt3> One moment, lemme try something...
[02:58] <Xpistos> I am not sure how to give a list in an if statement, only in case
[02:59] <arraybolt3> The best way I can think of to do this would be to use a "for" loop to iterate through the list and try each individual item in the "if" statement.
[03:00] <arraybolt3> There's also the -o switch in "test" which may help.
[03:00] <arraybolt3> But that would result in a very long and duplicate-ridden line.
[03:01] <arraybolt3> Xpistos: This might help: https://bpa.st/F47SA
[03:01] <Xpistos> that will do it
[03:02] <sergiodj> if it's bash, you can regexp-match using [[ ]] and =~
[03:02] <Xpistos> if it isn't 01 04 07 10 i want it to skip the quarterly report so that works
[03:02] <sergiodj> a=01; if [[ $a =~ 01|02|03 ]]; then echo "MATCHED"; fi;
[03:03] <arraybolt3> Xpistos: sergiodj's idea is probably lighter on resources and is a bit more concise, so it might be worth trying. (I'm not exactly a Bash expert, I just know enough to hack around and make things happen :P)
[03:04] <Xpistos> sergiodj: checking if I got it correct
[03:08] <Xpistos> sergiodj: That worked. thanks! and Thanks arraybolt3. You gave me some more options as well
[05:34] <hermit> someone pointed out a problem with phased roll out for server admin software.
[05:36] <hermit> To populate the list the upgradable switch is used.  That would mean you are bypassing the 'phasing' by selecting individual packages.  There is no indication of what would otherwise be held.
[16:25] <teward> bryceh: we might not want to push to backport SSL related things to older Ubuntu versions and nginx versions, whne stuff is added to 1.19.x it's built upon other 1.19.x stuff and that's a feature devel branch, so if we wanted that TLS 1.3 stuff we'd be better off doing a 1.20.x backport entirely.
[16:25] <teward> just saying
[16:26] <teward> cc cpaelzer as they TIL ~20 min ago - see bug #2007744
[16:26] -ubottu:#ubuntu-server- Bug 2007744 in nginx (Ubuntu) "Cannot configure openssl 1.3 ciphersuits in nginx on ubuntu 22.04" [Wishlist, Incomplete] https://launchpad.net/bugs/2007744
[16:29] <teward> cpaelzer: bryceh: we COULD do a backport of 1.22.0-* to -backports for the current LTS which would enable things
[16:30] <teward> that bypasses the SRU process and "fixes" the bug by allowing the newer version to be available (which is what -backports is teeeeeeeechnically for)