Add gpg sign flag

This commit is contained in:
Sven Seeberg 2020-10-29 21:38:51 +01:00
parent dda155ee81
commit d04a9bece6
Signed by: sven.seeberg
GPG key ID: 29559DD5A83806B5

View file

@ -113,7 +113,7 @@ function create_text_file($cfg, $body) {
file_put_contents($file_path, $line, FILE_APPEND);
}
file_put_contents($file_path, "\n\n\n", FILE_APPEND);
shell_exec("gpg " . $file_path);
shell_exec("gpg --sign " . $file_path);
sync_command($cfg, $file_path);
return trim(shell_exec("/usr/bin/sha256sum " . $file_path. " | awk '{ print $1 }'"));
}