diff options
author | John Klug <john.klug@multitech.com> | 2019-08-23 18:11:19 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-08-23 18:11:19 -0500 |
commit | 56b35723e1355a7f9841d7263fd56bbe8167dc91 (patch) | |
tree | 4ce89823a8bece7779c4c1649b1e36a0db26566a /recipes-core/useradd | |
parent | e5179767498b20b5d4f710c7f88376807a021112 (diff) | |
download | meta-mlinux-56b35723e1355a7f9841d7263fd56bbe8167dc91.tar.gz meta-mlinux-56b35723e1355a7f9841d7263fd56bbe8167dc91.tar.bz2 meta-mlinux-56b35723e1355a7f9841d7263fd56bbe8167dc91.zip |
Missing $D in path for .profile
Diffstat (limited to 'recipes-core/useradd')
-rw-r--r-- | recipes-core/useradd/useradd.bb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes-core/useradd/useradd.bb b/recipes-core/useradd/useradd.bb index 7b70fec..d229a2f 100644 --- a/recipes-core/useradd/useradd.bb +++ b/recipes-core/useradd/useradd.bb @@ -1,7 +1,7 @@ SUMMARY = "Add mtadm user" DESCRIPTION = "Add mtadm user for security purposes" SECTION = "mtadm" -PR = "r3" +PR = "r4" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" @@ -46,12 +46,12 @@ FILES_${PN} = "/home/mtadm/.ssh" INHIBIT_PACKAGE_DEBUG_SPLIT = "1" pkg_postinst_${PN} () { - profile=/home/mtadm/.profile + profile=$D/home/mtadm/.profile if ! grep 'sbin' ${profile} ; then Sub='${PA' Sub=${Sub}'TH}:/sbin:/usr/sbin' - echo 'PATH='${Sub} >>/home/mtadm/.profile - echo 'export PATH' >>/home/mtadm/.profile + echo 'PATH='${Sub} >>${profile} + echo 'export PATH' >>${profile} fi # If doing an update, we need to add mtadm to dialout. # If the admin has been changed, then the user must |