Ignore:
Timestamp:
Jun 8, 2017, 11:38:56 AM (4 years ago)
Author:
hectorgh
Message:

disabling ntp in clients

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-artwork-defaults/trunk/fuentes/debian/lliurex-artwork-defaults-client.postinst

    r1846 r5115  
    77
    88if  [ "$1" = "configure" ] ; then
     9
     10        # Disabling ntp in clients
     11       
     12        PKG="lliurex-artwork-defaults-client"
     13        ORIGINAL_FILE="/etc/init.d/ntp"
     14        NEW_DIVERTED_FILE="/etc/init.d/ntp.diverted"
     15        LLIUREX_FILE="/bin/true"
     16       
     17        if [ ! -L "$ORIGINAL_FILE" ]; then
     18
     19                systemctl stop ntp || true
     20                dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_FILE"
     21                ln -s "$LLIUREX_FILE" "$ORIGINAL_FILE"
     22
     23        fi
     24
    925
    1026        #update dconf database, as we droped new settings
Note: See TracChangeset for help on using the changeset viewer.