- 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.
# m h dom mon dow user command
# m h dom mon dow user command
-0-59/5 * * * * root /root/bin/getswitchtemp
+0-59/5 * * * * root /root/bin/get_switch_temperature
# 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 /
# 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.
echo 'Files unpacked.'
# I don't know why things were that way before, but I'm told to set them that way again.
cp /media/cdrom/simple-cdd/myrc.local /etc/rc.local
echo 'Script copied.'
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'