iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lots of fixes, automation for bitfolk
[distro-setup]
/
brc2
diff --git
a/brc2
b/brc2
index c233c9288354125d0d679f04deee6ee862666188..e392cf5c0a56d56b882bdb126aa7ff5c01185428 100644
(file)
--- a/
brc2
+++ b/
brc2
@@
-1647,18
+1647,24
@@
enn() {
sdnbash() { # systemd namespace bash
local unit=$1
sdnbash() { # systemd namespace bash
local unit=$1
- m sudo nsenter -t $(systemctl show --property MainPID --value $unit
'
) -n -m sudo -u $USER -i bash
+ m sudo nsenter -t $(systemctl show --property MainPID --value $unit) -n -m sudo -u $USER -i bash
}
mailnnbash() {
}
mailnnbash() {
- m sudo nsenter -t $(systemctl show --property MainPID --value mailnn
'
) -n -m sudo -u $USER -i bash
+ m sudo nsenter -t $(systemctl show --property MainPID --value mailnn) -n -m sudo -u $USER -i bash
}
mailvpnbash() {
m sudo nsenter -t $(pgrep -f "/usr/sbin/openvpn .* --config /etc/openvpn/.*mail.conf") -n -m sudo -u $USER -i bash
}
eximbash() {
}
mailvpnbash() {
m sudo nsenter -t $(pgrep -f "/usr/sbin/openvpn .* --config /etc/openvpn/.*mail.conf") -n -m sudo -u $USER -i bash
}
eximbash() {
- m sudo nsenter -t $(pgrep -f "/usr/sbin/exim4 -bd -q30m -C /etc/exim4/my.conf"|h1) -n -m sudo -u $USER -i bash
+ local pid
+ pid=$(pgrep -f "/usr/sbin/exim4 -bd -q30m -C /etc/exim4/my.conf"|h1)
+ if [[ ! $pid ]]; then
+ echo "eximbash: failed to find exim pid. systemctl -n 30 status exim4:"
+ systemctl status exim4
+ fi
+ m sudo nsenter -t $pid -n -m
}
spamnn() {
local spamdpid
}
spamnn() {
local spamdpid
@@
-1741,7
+1747,7
@@
vpn() {
sudo systemd-tty-ask-password-agent
}
sudo systemd-tty-ask-password-agent
}
-
ufix
() {
+
fixu
() {
ls -lad /run/user/1000
s chmod 700 /run/user/1000; s chown iank.iank /run/user/1000
}
ls -lad /run/user/1000
s chmod 700 /run/user/1000; s chown iank.iank /run/user/1000
}