File: common-utils.rc

package info (click to toggle)
glusterfs 9.2-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 44,016 kB
  • sloc: ansic: 478,310; sh: 49,170; python: 12,964; makefile: 1,945; yacc: 487; lisp: 124; lex: 61; xml: 14
file content (7 lines) | stat: -rw-r--r-- 119 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7

function run_cmd_as_user {
        local user=$1
        shift
        su -m $user -c "$*" || return 1
    return 0
}