top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Command or Script to add text to parameter 'shutdownhtml' in param file.

0 votes
298 views

I am looking for One Line Command or a simple script to set the 'shutdownhtml' in /var/www/html/bugzilla/data/param file.

From...

'shutdownhtml' => '',

To....

 'shutdownhtml' => 'Archiving DB and Bugzilla config... It could takes 5 min or longer.',

Did try to use "sed" but somehow the config above has Single Open quote ' , so seem like "sed" not able to do this... ??

posted May 19, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The config needs to be valid Perl code, this may help you to find a solution. You could alternatively simply store two configuration files, one with the shutdown text, the other without and move them as
needed into place. This would have the benefit that the operations are atomic and you don't have to deal with requests which get broken configuration data simply because they arrive in the moment were you
save the new file with the new contents and have some milliseconds of invalid perl code.

Said that, why do you think you have to shutdown your Bugzilla installation at all? It's surely not needed for backups of your database as all modern databases are able to do a backup while they are running. Changes to the file system can only occur because administrators change the system configuration, which won't happen very often, if users upload some attachments and you configured to store them in the file system and by running scripts like collectstats.pl. Depending on your configuration all of those may not be a problem for you and you don't need to shutdown your installation.

Depending on your file system you should consider using snapshots, too.

answer May 19, 2013 by anonymous
Similar Questions
+2 votes

We all know that cd is a built-in function of whatever shell you're using.

$ cat /usr/bin/cd
#!/bin/sh
builtin cd "$@"

Does anybody know why this file exists?

+3 votes
  • I have installed on windows v.3.6 I want to migrate it to linux with the latest version, what do you recommend my installation process should including to keep the db.
  • Another option is to keep Bugzilla on windows and to upgrade the version ? what do you recommend my installation process should including to keep the db. Is there an simple installer.
...