getswitchtemp fix
authorOlivier Leobal <olivier.leobal@thalesgroup.com>
Thu, 7 May 2015 13:47:03 +0000 (15:47 +0200)
committerOlivier Leobal <olivier.leobal@thalesgroup.com>
Thu, 7 May 2015 13:47:03 +0000 (15:47 +0200)
- 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.

master/etc/cron.d/getswitchtemp
simple-cdd/profiles/trc6500.postinst

index 40140af41441dad8d6668bf93cbb2e76ceabbf8b..e76173b5f56e6d9e76409f000d8711b5ca131dbf 100644 (file)
@@ -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
index 0ad5d6033935beda7368aa64da05294613e6d3e1..01231b82e9c6ff65b6eabed5ba7f5490ec623cbb 100755 (executable)
@@ -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