chore: add utility files

This commit is contained in:
xeruf 2022-09-08 19:28:51 +02:00
parent 2652d719a9
commit 9892f969cd
4 changed files with 26 additions and 0 deletions

2
util/i.cmd Normal file
View File

@ -0,0 +1,2 @@
@echo off
Powershell Start -Verb runAs powershell -ArgumentList '-ExecutionPolicy Bypass -NoExit Set-Location %cd%; .\instalee\i.ps1'

BIN
util/i.lnk Normal file

Binary file not shown.

19
util/issues.md Normal file
View File

@ -0,0 +1,19 @@
https://superuser.com/questions/55809/how-to-run-program-from-command-line-with-elevated-rights
- auto-elevation of choco
- post-choco-install check if launching git bash works
- add choco to handlers
Set-Location : Illegales Zeichen im Pfad.
In K:\instalee\packages\chocolatey\powershell.ps1:24 Zeichen:5
+ Set-Location $Loc.Substring(1,$Loc.Length-1)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (K:\instalee":String) [Set-Location], ArgumentException
+ FullyQualifiedErrorId : ItemExistsArgumentError,Microsoft.PowerShell.Commands.SetLocationCommand
Set-Location : Der Pfad "K:\instalee"" kann nicht gefunden werden, da er nicht vorhanden ist.
In K:\instalee\packages\chocolatey\powershell.ps1:24 Zeichen:5
+ Set-Location $Loc.Substring(1,$Loc.Length-1)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (K:\instalee":String) [Set-Location], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

5
util/work.sh Normal file
View File

@ -0,0 +1,5 @@
echo "
sudo umount -l "$(dirname "$0")" &&
sudo mount -o uid=1000,gid=1000,umask=0000 -L PEARL /mnt &&
/mnt/instalee/instalee --noexec work" >/tmp/remount.sh
exec sh /tmp/remount.sh