Changeset 6960


Ignore:
Timestamp:
Mar 5, 2018, 1:37:43 PM (18 months ago)
Author:
kbut
Message:

clean promote image files

Location:
lmd/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lmd/trunk/fuentes/debian/changelog

    r6921 r6960  
     1lmd (2.8.3) xenial; urgency=high
     2
     3  * Clean /opt/ltsp/images files when promote image
     4  * Remove /var/lib/tftpboot/ltsp/ folder when promote image
     5
     6 -- Raul Rodrigo Segura <raurodse@gmail.com>  Mon, 05 Mar 2018 13:36:05 +0100
     7
    18lmd (2.8.2) xenial; urgency=high
    29
  • lmd/trunk/fuentes/lmd-server.install/usr/sbin/lmd-promote-image

    r6839 r6960  
    2121# /opt/ltsp/images
    2222if [ -e "/opt/ltsp/images/${IMAGETOPRMOTE}.img" ]; then
    23     rsync -ax "/opt/ltsp/images/${IMAGETOPRMOTE}.img" "/opt/ltsp/images/${DESTNAME}.img"
     23    mv "/opt/ltsp/images/${DESTNAME}.img" "/opt/ltsp/images/${DESTNAME}.img.old"
     24    mv "/opt/ltsp/images/${IMAGETOPRMOTE}.img" "/opt/ltsp/images/${DESTNAME}.img"
    2425fi
    2526
     
    2829if [ -e "/var/lib/tftpboot/ltsp/${IMAGETOPRMOTE}/" ]; then
    2930    rsync -ax --delete --exclude="lts.conf" "/var/lib/tftpboot/ltsp/${IMAGETOPRMOTE}/" "/var/lib/tftpboot/ltsp/${DESTNAME}"
     31    rm -rf "/var/lib/tftpboot/ltsp/${IMAGETOPRMOTE}/"
    3032fi
    3133# Restart NBD-SERVER
    3234systemctl restart nbd-server
     35n4d-client -r -m process_tasks -c SchedulerClient
Note: See TracChangeset for help on using the changeset viewer.