matrix-commander - run always as current user
This commit is contained in:
@@ -38,13 +38,11 @@ step_config() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
step_1_info() { echoinfoArgs "[-u]"; echo "Run $toolName"; }
|
step_1_info() { echo "Run $toolName"; }
|
||||||
step_1_alias() { ALIAS="run"; }
|
step_1_alias() { ALIAS="run"; }
|
||||||
step_1() {
|
step_1() {
|
||||||
shift
|
shift
|
||||||
local asUser=
|
exe "$MACO_BASE_DIR/bin/python3" "$MACO_DIR/matrix-commander.py" "$@"
|
||||||
[ "$1" == "-u" ] && asUser="sudo -u $MACO_USER" && shift
|
|
||||||
exe $asUser "$MACO_BASE_DIR/bin/python3" "$MACO_DIR/matrix-commander.py" "$@"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
step_3_info() {
|
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
|
exe sudo -u $MACO_USER ${MACO_BASE_DIR}/bin/pip install -r ${MACO_DIR}/requirements.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
step_55_info() {
|
step_55_info() {
|
||||||
echo "Create systemd service for $toolName"
|
echo "Create systemd service for $toolName"
|
||||||
echoinfo "(Make sure to modify the service content in the step configuration)"
|
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)"
|
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_alias() { ALIAS="notes"; }
|
||||||
step_60() {
|
step_60() {
|
||||||
outColor green
|
outColor green
|
||||||
|
Reference in New Issue
Block a user