Ignore:
Timestamp:
Jul 12, 2018 11:51:34 PM (2 years ago)
Author:
skylar
Message:

only create accounts if they do not already exist re #1008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.4.0-build_ng/bin/deb/bccd_deb_after_install

    r6045 r6053  
    1616
    1717# Add bccd user using bccd user skeleton directory (#988)
    18 useradd -k /etc/bccd-skel -m bccd
     18if ! getent passwd bccd > /dev/null; then
     19    useradd -k /etc/bccd-skel -m bccd
     20fi
    1921# Set bccd-stage to LIVE if we are running in Jenkins or a live boot (aufs mount detected)
    2022if [[ "x${WORKSPACE}" != "x" ]] || mount|grep -q aufs > /dev/null 2>&1 ; then
     
    2527
    2628# Add snmp user (#991)
    27 useradd -r snmp
     29if ! getent passwd snmp > /dev/null; then
     30    useradd -r snmp
     31fi
    2832
    2933# Ensure consistent NIC names (#991)
Note: See TracChangeset for help on using the changeset viewer.