add queue offsets to user

This commit is contained in:
Alex Bezdieniezhnykh
2025-04-16 01:29:58 +03:00
parent a5ccc46fbd
commit 5673eeade9
7 changed files with 69 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
f (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
$arguments = "-Command `"& { Set-ExecutionPolicy Bypass -Scope Process -Force; & '$PSCommand' $($args -join ' ') }`""
Start-Process -Verb RunAs -FilePath "powershell.exe" -ArgumentList $arguments
exit # Terminate the current non-elevated script
}
& "setx" "foo" "bar"
setx ASPNETCORE_ConnectionStrings__AzaionDb Host=localhost;Database=azaion;Username=azaion_reader;Password=Az@1on_re@d!only@$Az;
setx ASPNETCORE_ConnectionStrings__AzaionDbAdmin Host=localhost;Database=azaion;Username=azaion_admin;Password=Az@1on_admin$$@r;
setx ASPNETCORE_JwtConfig__Secret sdkfjghbsdfklhjgvbsdkljfhbvasklhfgsdfvh
+2 -1
View File
@@ -7,7 +7,8 @@ create table users
password_hash varchar(255) not null,
hardware text null,
hardware_hash varchar(120) null,
role varchar(20) not null
role varchar(20) not null,
user_config varchar(512) null
);
grant select, insert, update, delete on public.users to azaion_admin;
grant select on table public.users to azaion_reader;