Added version number to backup scripts because if multiple backup scripts
are run in sequence it can happen within one second. This means that the first backup of a file would be overwritten with the second backup.
This commit is contained in:
parent
fa17e63611
commit
435f9a9bd1
|
@ -236,7 +236,8 @@ function InstallBinaries()
|
|||
exec("cp -R ".$AIRTIME_UTILS." ".CONF_DIR_BINARIES);
|
||||
}
|
||||
|
||||
$suffix = date("Ymdhis");
|
||||
// Backup the config files
|
||||
$suffix = date("Ymdhis")."-1.8.1";
|
||||
foreach ($configFiles as $conf) {
|
||||
if (file_exists($conf)) {
|
||||
echo "Backing up $conf to $conf$suffix.bak".PHP_EOL;
|
||||
|
|
|
@ -236,7 +236,7 @@ function InstallBinaries()
|
|||
exec("cp -R ".$AIRTIME_UTILS." ".CONF_DIR_BINARIES);
|
||||
}
|
||||
|
||||
$suffix = date("Ymdhis");
|
||||
$suffix = date("Ymdhis")."-1.8.2";
|
||||
foreach ($configFiles as $conf) {
|
||||
if (file_exists($conf)) {
|
||||
echo "Backing up $conf to $conf$suffix.bak".PHP_EOL;
|
||||
|
|
Loading…
Reference in New Issue