Skip to content
English
  • There are no suggestions because the search field is empty.

How to replace SimpleRisk Logo Permanently using Crontab (On-Premise Only)

In this FAQ, we provide a step-by-step guide on how to update your SimpleRisk logo while ensuring that your application continues to operate smoothly. This process requires access to the server terminal and the use of crontab. Please note that this method is not applicable for SimpleRisk-hosted instances; however, our support team is available to assist medium and large platform users at support@simplerisk.com. For the best visual results, we suggest resizing your logo to dimensions of 186x46 pixels.

Instructions

All of the following steps should be carried out using the Terminal or Command Line Interface (CLI) on your server.

1) Begin by transferring your chosen logo to the SimpleRisk machine, placing it outside the web directory, and naming it "logo@2x.png." We recommend using the PNG format to minimize any potential increase in page load times.

2) Next, access the cron table for editing by typing "crontab -e" in the terminal.

3) In the editor, you will need to add the following two lines. To provide some context, the first command will copy your logo over the existing SimpleRisk logo every hour. The second command will reset the file permissions for the logo and assign ownership to the Apache user (on Ubuntu systems; users of other operating systems will need to adjust the Apache user accordingly).


01 * * * * cp -rf /logodirectory/logo@2x.png /var/www/simplerisk/images/logo@2x.png
01 * * * * chown -R www-data: /var/www/simplerisk/images


Once you have entered the commands, press escape and type ":wq" to save and exit the editor.

Summary

At this point you have completed the steps to ensure your logo is in place and properly owned. We suggest creating a directly specifically to store this logo as /tmp/ may end up being cleared when you aren't expecting it and I wouldn't suggest anywhere in the SimpleRisk web directory as it will be replaced during upgrades.

If you have any remaining questions or concerns please contact us at support@simplerisk.com