GLPI: Remove temp installer script
This commit is contained in:
parent
c8c799a743
commit
7fab820401
|
@ -270,7 +270,7 @@ main() { # {{{
|
||||||
debug_message "| Current version (${current_version}) seems uptodate \
|
debug_message "| Current version (${current_version}) seems uptodate \
|
||||||
or newer than available version (${new_version})."
|
or newer than available version (${new_version})."
|
||||||
### Ensure to remove any temp file and useless .deb files
|
### Ensure to remove any temp file and useless .deb files
|
||||||
rm --force -- "${new_version_file}" "${new_package_path}" "${tmp_package_path}"
|
rm --force -- "${new_version_file}" "${new_package_path}" "${tmp_package_path}" "${installer_script_file}"
|
||||||
### Exit
|
### Exit
|
||||||
debug_message "-- Test version END"
|
debug_message "-- Test version END"
|
||||||
debug_message "--- MAIN END"
|
debug_message "--- MAIN END"
|
||||||
|
@ -292,7 +292,7 @@ or newer than available version (${new_version})."
|
||||||
else
|
else
|
||||||
debug_message "| Empty file, don't need to go further."
|
debug_message "| Empty file, don't need to go further."
|
||||||
### Ensure to remove the file to monitor
|
### Ensure to remove the file to monitor
|
||||||
rm --force -- "${new_version_file}"
|
rm --force -- "${new_version_file}" "${installer_script_file}"
|
||||||
|
|
||||||
### Keep a record of the downloaded package because as a new release might come soon
|
### Keep a record of the downloaded package because as a new release might come soon
|
||||||
mv --force -- "${new_package_path}" "${tmp_package_path}"
|
mv --force -- "${new_package_path}" "${tmp_package_path}"
|
||||||
|
|
Loading…
Reference in New Issue