Add doas support in script/linux (#8788)

feelamee created

Release Notes:
- n/a

Change summary

script/linux | 2 +-
typos.toml   | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)

Detailed changes

script/linux 🔗

@@ -1,7 +1,7 @@
 #!/usr/bin/bash -e
 
 # if sudo is not installed, define an empty alias
-maysudo=$(command -v sudo || true)
+maysudo=$(command -v sudo || command -v doas || true)
 
 # Ubuntu, Debian, etc.
 # https://packages.ubuntu.com/

typos.toml 🔗

@@ -26,6 +26,7 @@ extend-ignore-re = [
     "COLUMN enviroment",
     # Typo in ClickHouse column name.
     # crates/collab/src/api/events.rs
-    "rename = \"sesssion_id\""
+    "rename = \"sesssion_id\"",
+    "doas",
 ]
 check-filename = true