From: Olivier Leobal Date: Thu, 7 May 2015 13:47:03 +0000 (+0200) Subject: getswitchtemp fix X-Git-Tag: debian_7.8.1~3 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=40346f7c7585854238262f7b8ca4b5a0e5c5f0b4;p=debian6500.git getswitchtemp fix - changes the /etc/cron.d/getswitchtemp script to call the right filename - in postinstall, changes the owner of the files from trc6500 to root We also noticed simple-cdd was creating a /usr/local/simple-cdd directory ; so now we delete it in postinst. --- diff --git a/master/etc/cron.d/getswitchtemp b/master/etc/cron.d/getswitchtemp index 40140af..e76173b 100644 --- a/master/etc/cron.d/getswitchtemp +++ b/master/etc/cron.d/getswitchtemp @@ -1,2 +1,2 @@ # m h dom mon dow user command -0-59/5 * * * * root /root/bin/getswitchtemp +0-59/5 * * * * root /root/bin/get_switch_temperature diff --git a/simple-cdd/profiles/trc6500.postinst b/simple-cdd/profiles/trc6500.postinst index 0ad5d60..01231b8 100755 --- a/simple-cdd/profiles/trc6500.postinst +++ b/simple-cdd/profiles/trc6500.postinst @@ -15,6 +15,8 @@ echo 'Additional packages installed.' # now we unpack our master archive and replace all those conf files and scripts and things echo 'Unpacking master config files..' tar xzf /media/cdrom/simple-cdd/master.tar -C / +chown root /etc/cron.d/getswitchtemp +chown root /root/bin/get_switch_temperature echo 'Files unpacked.' # I don't know why things were that way before, but I'm told to set them that way again. @@ -65,5 +67,8 @@ mv /etc/rc.local /etc/rc.local.original cp /media/cdrom/simple-cdd/myrc.local /etc/rc.local echo 'Script copied.' +echo 'Deleting simple-cdd files on disk..' +rm -r /usr/local/simple-cdd +echo 'Script deleted' umount /media/cdrom