Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GIP RENATER
switch-wayf
Commits
8b0040aa
Commit
8b0040aa
authored
Mar 09, 2018
by
Guillaume Rousse
Browse files
delete local copy of remote metadata file on normal exit
parent
02877a59
Changes
1
Hide whitespace changes
Inline
Side-by-side
update-metadata.php
View file @
8b0040aa
...
...
@@ -179,3 +179,12 @@ if (is_array($metadataSProviders)){
exit
(
"Exiting: Could not rename temporary file
$metadataTempSPFile
to
$metadataSPFile
"
);
}
}
// clean up if needed
if
(
$metadataURL
)
{
$result
=
unlink
(
$metadataFile
);
if
(
!
$result
)
{
$error
=
error_get_last
();
exit
(
"Exiting: could not delete temporary file
$metadataFile
:
$error
\n
"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment