fix some other stuff related to updating Tor dev keys

This commit is contained in:
idk
2022-07-15 01:40:45 -04:00
parent c8f2a920dc
commit 91b7abd287
6 changed files with 10 additions and 9 deletions

View File

@ -463,7 +463,7 @@ flatpak-remote-install:
flatpak --user install org.i2pgit.idk.i2p.plugins.tor-manager org.i2pgit.idk.i2p.plugins.tor-manager
flatpak-update: flatpak-repo
flatpak --user update org.i2pgit.idk.i2p.plugins.tor-manager-dev
flatpak --user update org.i2pgit.idk.i2p.plugins.tor-manager
run-flatpak:
flatpak run org.i2pgit.idk.i2p.plugins.tor-manager

View File

@ -4,7 +4,6 @@ import (
"log"
"os"
"strings"
"time"
flag "github.com/spf13/pflag"
)
@ -18,7 +17,7 @@ func CleanupArgs() (args []string, trailers []string) {
flag.VisitAll(func(f *flag.Flag) {
//log.Printf("testing f.Name: %s against %s", f.Name, trimmed)
if f.Name == trimmed {
log.Printf("found flag: %s", f.Name)
log.Printf("found known flag: %s", f.Name)
// if the next arg is not a flag(does not start with '-'), add it to the end of arg before
// appending arg to args
if i+1 < len(os.Args) && os.Args[i+1][0] != '-' {
@ -40,7 +39,6 @@ func CleanupArgs() (args []string, trailers []string) {
i++
}
}
time.Sleep(time.Second)
}
return
}

View File

@ -7,4 +7,4 @@ export APP_ID=org.i2pgit.idk.i2p.plugins.tor-manager
--nevertor \
--p2p=false \
--i2pconfig \
--directory=~/.var/app/org.i2pgit.idk.i2p.plugins.tor-manager
--directory=.var/app/org.i2pgit.idk.i2p.plugins.tor-manager

View File

@ -2,5 +2,8 @@
export TOR_MANAGER_CLEARNET_MIRROR=true
export TOR_MANAGER_REQUIRE_PASSWORD=false
export APP_ID=org.i2pgit.idk.i2p.plugins.tor-manager
nohup /app/bin/i2p.plugins.tor-manager -p2p=false -directory ~/.var/app/org.i2pgit.idk.i2p.plugins.tor-manager 2> ~/.var/app/org.i2pgit.idk.i2p.plugins.tor-manager/tor-manager.err.log 1> ~/.var/app/org.i2pgit.idk.i2p.plugins.tor-manager/tor-manager.log &
/app/bin/i2p.plugins.tor-manager --p2p=false --i2pconfig --directory ~/.var/app/org.i2pgit.idk.i2p.plugins.tor-manager
nohup /app/bin/i2p.plugins.tor-manager -p2p=false -directory=~/.var/app/org.i2pgit.idk.i2p.plugins.tor-manager 2> ~/.var/app/org.i2pgit.idk.i2p.plugins.tor-manager/tor-manager.err.log 1> ~/.var/app/org.i2pgit.idk.i2p.plugins.tor-manager/tor-manager.log &
/app/bin/i2p.plugins.tor-manager \
--p2p=false \
--i2pconfig \
--directory=.var/app/org.i2pgit.idk.i2p.plugins.tor-manager

View File

@ -5,4 +5,4 @@ export APP_ID=org.i2pgit.idk.i2p.plugins.tor-manager
/app/bin/i2p.plugins.tor-manager \
--p2p=false \
--torbrowser \
--directory=~/.var/app/org.i2pgit.idk.i2p.plugins.tor-manager
--directory=.var/app/org.i2pgit.idk.i2p.plugins.tor-manager

View File

@ -6,4 +6,4 @@ export APP_ID=org.i2pgit.idk.i2p.plugins.tor-manager
/app/bin/i2p.plugins.tor-manager \
--nevertor \
--i2pbrowser \
--directory=~/.var/app/org.i2pgit.idk.i2p.plugins.tor-manager
--directory=.var/app/org.i2pgit.idk.i2p.plugins.tor-manager