matrix-commander - run always as current user

This commit is contained in:
2022-03-14 21:44:55 +01:00
parent 992868b14d
commit 15f537c90d

View File

@@ -38,13 +38,11 @@ step_config() {
return 0
}
step_1_info() { echoinfoArgs "[-u]"; echo "Run $toolName"; }
step_1_info() { echo "Run $toolName"; }
step_1_alias() { ALIAS="run"; }
step_1() {
shift
local asUser=
[ "$1" == "-u" ] && asUser="sudo -u $MACO_USER" && shift
exe $asUser "$MACO_BASE_DIR/bin/python3" "$MACO_DIR/matrix-commander.py" "$@"
exe "$MACO_BASE_DIR/bin/python3" "$MACO_DIR/matrix-commander.py" "$@"
}
step_3_info() {
@@ -97,7 +95,6 @@ NOTES_END
exe sudo -u $MACO_USER ${MACO_BASE_DIR}/bin/pip install -r ${MACO_DIR}/requirements.txt
}
step_55_info() {
echo "Create systemd service for $toolName"
echoinfo "(Make sure to modify the service content in the step configuration)"
@@ -120,9 +117,6 @@ step_57() {
echoseq " [I] use \"$SEQ_NAME run --verify\" to verify against an existing session (like Element)"
}
step_60_info() { echo "Notes"; }
step_60_alias() { ALIAS="notes"; }
step_60() {
outColor green