file restore daemon: reword warning about manual execution

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit 309e14ebb7)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-03 19:51:14 +02:00
parent aa2cd76c58
commit fa3fdea590
1 changed files with 3 additions and 4 deletions

View File

@ -37,10 +37,9 @@ lazy_static! {
/// This is expected to be run by 'proxmox-file-restore' within a mini-VM /// This is expected to be run by 'proxmox-file-restore' within a mini-VM
fn main() -> Result<(), Error> { fn main() -> Result<(), Error> {
if !Path::new(VM_DETECT_FILE).exists() { if !Path::new(VM_DETECT_FILE).exists() {
bail!(concat!( bail!(
"This binary is not supposed to be run manually. ", "This binary is not supposed to be run manually, use 'proxmox-file-restore' instead."
"Please use 'proxmox-file-restore' instead." );
));
} }
// don't have a real syslog (and no persistance), so use env_logger to print to a log file (via // don't have a real syslog (and no persistance), so use env_logger to print to a log file (via