diff options
author | B Stack <bgstack15@gmail.com> | 2020-09-29 22:47:28 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-09-29 22:47:28 -0400 |
commit | 0d5f8b7657527eab8380f5aa81ecd072714cf13c (patch) | |
tree | 80de0f0ea39fd4690d07f85856ab6511175bff8f /src/usr/bin | |
parent | add sudo rule (diff) | |
download | myautomount-0d5f8b7657527eab8380f5aa81ecd072714cf13c.tar.gz myautomount-0d5f8b7657527eab8380f5aa81ecd072714cf13c.tar.bz2 myautomount-0d5f8b7657527eab8380f5aa81ecd072714cf13c.zip |
add sudo, fix initialization
Diffstat (limited to 'src/usr/bin')
-rwxr-xr-x | src/usr/bin/myautomountd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/bin/myautomountd b/src/usr/bin/myautomountd index 340ce04..06bb2da 100755 --- a/src/usr/bin/myautomountd +++ b/src/usr/bin/myautomountd @@ -120,7 +120,7 @@ trap '__ec=$? ; clean_automount ; trap "" 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 mkdir -p "${AUTOMOUNT_BASEDIR}" # run initialization script as root -$( which sudo 2>/dev/null ) /usr/libexec/myautomount/myautomount-initialize.sh +$( which sudo 2>/dev/null ) AUTOMOUNT_USER="${USER}" /usr/libexec/myautomount/myautomount-initialize.sh _response="${?}" ; test ${_response} -ne 0 && exit ${_response} # MAIN |